We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7850c9e commit a0c7a52Copy full SHA for a0c7a52
1 file changed
sqlmodel/main.py
@@ -966,7 +966,9 @@ def dict(
966
"""
967
)
968
def from_orm(
969
- cls: type[_TSQLModel], obj: Any, update: Optional[builtins.dict[str, Any]] = None
+ cls: type[_TSQLModel],
970
+ obj: Any,
971
+ update: Optional[builtins.dict[str, Any]] = None,
972
) -> _TSQLModel:
973
return cls.model_validate(obj, update=update)
974
@@ -978,7 +980,9 @@ def from_orm(
978
980
979
981
982
def parse_obj(
983
984
985
986
987
if not IS_PYDANTIC_V2:
988
obj = cls._enforce_dict_if_root(obj) # type: ignore[attr-defined] # noqa
0 commit comments