Skip to content

Commit

Permalink
fix pydantic v1 import
Browse files Browse the repository at this point in the history
  • Loading branch information
thejaminator committed Jul 22, 2023
1 parent 969112b commit 107ea3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def tests_integrations(session: Session, integration: str) -> None:

@session(python=["3.11"], name="Pydantic tests", tags=["tests"])
# TODO: add pydantic 2.0 here :)
@nox.parametrize("pydantic", ["1.10"])
@nox.parametrize("pydantic", ["1.10", "2.0.3"])
def test_pydantic(session: Session, pydantic: str) -> None:
session.run_always("poetry", "install", external=True)

Expand Down
2 changes: 1 addition & 1 deletion strawberry/experimental/pydantic/v2_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pydantic
from pydantic import BaseModel
from pydantic.version import VERSION as PYDANTIC_VERSION
from pydantic_core import PydanticUndefined

if TYPE_CHECKING:
from pydantic.fields import FieldInfo
Expand All @@ -32,6 +31,7 @@ class CompatModelField:

from pydantic._internal._typing_extra import is_new_type
from pydantic._internal._utils import lenient_issubclass, smart_deepcopy
from pydantic_core import PydanticUndefined

PYDANTIC_MISSING_TYPE = PydanticUndefined

Expand Down

0 comments on commit 107ea3c

Please sign in to comment.