⬆️ Add support for Python 3.13 (#1289)

This commit is contained in:
Sofie Van Landeghem
2025-03-06 19:58:40 +01:00
committed by GitHub
parent bf376f83ca
commit b1349dae45
4 changed files with 14 additions and 7 deletions

View File

@@ -93,8 +93,8 @@ NoArgAnyCallable = Callable[[], Any]
IncEx: TypeAlias = Union[
Set[int],
Set[str],
Mapping[int, Union["IncEx", Literal[True]]],
Mapping[str, Union["IncEx", Literal[True]]],
Mapping[int, Union["IncEx", bool]],
Mapping[str, Union["IncEx", bool]],
]
OnDeleteType = Literal["CASCADE", "SET NULL", "RESTRICT"]
@@ -479,7 +479,7 @@ def Relationship(
class SQLModelMetaclass(ModelMetaclass, DeclarativeMeta):
__sqlmodel_relationships__: Dict[str, RelationshipInfo]
model_config: SQLModelConfig
model_fields: Dict[str, FieldInfo]
model_fields: Dict[str, FieldInfo] # type: ignore[assignment]
__config__: Type[SQLModelConfig]
__fields__: Dict[str, ModelField] # type: ignore[assignment]