Skip to content

Commit

Permalink
fix: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 27, 2023
1 parent 2f18f60 commit 62ca1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
"pandas>=1.3.0,<2",
"pluggy>=1.3,<2",
"pydantic>=1.10.8,<3",
"pydantic-settings>=2.0.3,<3",
"PyGithub>=1.59,<2",
"pytest>=6.0,<8.0",
"python-dateutil>=2.8.2,<3",
Expand Down
3 changes: 2 additions & 1 deletion src/ape/_pydantic_compat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# support both pydantic v1 and v2

try:
from pydantic.v1 import ( # type: ignore
BaseModel,
Expand All @@ -16,6 +17,7 @@
except ImportError:
from pydantic import ( # type: ignore
BaseModel,
BaseSettings,
Extra,
Field,
FileUrl,
Expand All @@ -27,7 +29,6 @@
validator,
)
from pydantic.dataclasses import dataclass # type: ignore
from pydantic_settings import BaseSettings # type: ignore

__all__ = (
"BaseModel",
Expand Down

0 comments on commit 62ca1b3

Please sign in to comment.