Skip to content

Commit

Permalink
fix: update pydantic syntax to support v2
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 committed Aug 29, 2023
1 parent c7cee24 commit 86bc9b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eos_downloader/models/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class EosVersion(BaseModel):
minor: int = 0
patch: int = 0
rtype: Optional[str] = 'F'
other: Any
other: Any = None

@classmethod
def from_str(cls, eos_version: str) -> EosVersion:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"cvprac>=1.0.7",
"click~=8.1.6",
"click-help-colors~=0.9",
"pydantic>=1.10.4,<3.0.0",
"pydantic>2.0.0,<3.0.0",
]
keywords = ["eos_downloader", "Arista", "eos", "cvp", "network", "automation", "networking", "devops", "netdevops"]
classifiers = [
Expand Down Expand Up @@ -61,7 +61,7 @@ dev = [
"pytest-dependency",
"pytest-html>=3.1.1",
"pytest-metadata>=1.11.0",
"pylint-pydantic>=0.1.4",
"pylint-pydantic>=0.2.4",
"tox==4.10.0",
"types-PyYAML",
"types-paramiko",
Expand Down

0 comments on commit 86bc9b1

Please sign in to comment.