Skip to content

Commit

Permalink
尝试强制使用 pydantic>=2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Dec 27, 2023
1 parent 939bd4a commit fba4ecb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions cftool/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,6 @@ class WorkNode(BaseModel):
def to_item(self) -> Item["WorkNode"]:
return Item(self.key, self)

class Config:
smart_union = True


class ToposortResult(NamedTuple):
in_edges: Dict[str, Set[str]]
Expand Down
2 changes: 1 addition & 1 deletion cftool/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RuntimeError(BaseModel):
detail: str

class Config:
schema_extra = {
json_schema_extra = {
"example": {"detail": "RuntimeError occurred."},
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"future",
"psutil",
"pathos",
"pydantic",
"pydantic>=2.0.0",
"numpy>=1.22.3",
]

Expand Down

0 comments on commit fba4ecb

Please sign in to comment.