Skip to content

Commit 6a96dba

Browse files
committed
use IncEx definition from Pydantic
1 parent 14ee1a8 commit 6a96dba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sqlmodel/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
IncEx: TypeAlias = Union[
9494
Set[int],
9595
Set[str],
96-
Mapping[int, Union["IncEx", Literal[True]]],
97-
Mapping[str, Union["IncEx", Literal[True]]],
96+
Mapping[int, Union["IncEx", bool]],
97+
Mapping[str, Union["IncEx", bool]],
9898
]
9999
OnDeleteType = Literal["CASCADE", "SET NULL", "RESTRICT"]
100100

@@ -479,7 +479,6 @@ def Relationship(
479479
class SQLModelMetaclass(ModelMetaclass, DeclarativeMeta):
480480
__sqlmodel_relationships__: Dict[str, RelationshipInfo]
481481
model_config: SQLModelConfig
482-
model_fields: Dict[str, FieldInfo]
483482
__config__: Type[SQLModelConfig]
484483
__fields__: Dict[str, ModelField] # type: ignore[assignment]
485484

0 commit comments

Comments
 (0)