Skip to content

Commit 2e8be82

Browse files
committed
♻️ Update model_fields, type them with compatibility for Pydantic v3
1 parent dbd8551 commit 2e8be82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def Relationship(
477477
class SQLModelMetaclass(ModelMetaclass, DeclarativeMeta):
478478
__sqlmodel_relationships__: Dict[str, RelationshipInfo]
479479
model_config: SQLModelConfig
480-
model_fields: Dict[str, FieldInfo]
480+
model_fields: ClassVar[Dict[str, FieldInfo]]
481481
__config__: Type[SQLModelConfig]
482482
__fields__: Dict[str, ModelField] # type: ignore[assignment]
483483

0 commit comments

Comments
 (0)