Skip to content

Commit

Permalink
fix: mypy "ForwardRef"; implicit reexport disabled
Browse files Browse the repository at this point in the history
current pydantic 1.10.2
see pydantic/pydantic#4358
Fix imports indirectly from pydantic typing #4358
  • Loading branch information
SLLau committed Oct 18, 2022
1 parent 1151d85 commit 94527a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlmodel/main.py
Expand Up @@ -21,6 +21,7 @@
TypeVar,
Union,
cast,
ForwardRef,
)

from pydantic import BaseConfig, BaseModel
Expand All @@ -29,7 +30,7 @@
from pydantic.fields import FieldInfo as PydanticFieldInfo
from pydantic.fields import ModelField, Undefined, UndefinedType
from pydantic.main import ModelMetaclass, validate_model
from pydantic.typing import ForwardRef, NoArgAnyCallable, resolve_annotations
from pydantic.typing import NoArgAnyCallable, resolve_annotations
from pydantic.utils import ROOT_KEY, Representation
from sqlalchemy import Boolean, Column, Date, DateTime
from sqlalchemy import Enum as sa_Enum
Expand Down

0 comments on commit 94527a6

Please sign in to comment.