Skip to content

Commit a0c7a52

Browse files
committed
🎨 Format main.py
1 parent 7850c9e commit a0c7a52

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

sqlmodel/main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,9 @@ def dict(
966966
"""
967967
)
968968
def from_orm(
969-
cls: type[_TSQLModel], obj: Any, update: Optional[builtins.dict[str, Any]] = None
969+
cls: type[_TSQLModel],
970+
obj: Any,
971+
update: Optional[builtins.dict[str, Any]] = None,
970972
) -> _TSQLModel:
971973
return cls.model_validate(obj, update=update)
972974

@@ -978,7 +980,9 @@ def from_orm(
978980
"""
979981
)
980982
def parse_obj(
981-
cls: type[_TSQLModel], obj: Any, update: Optional[builtins.dict[str, Any]] = None
983+
cls: type[_TSQLModel],
984+
obj: Any,
985+
update: Optional[builtins.dict[str, Any]] = None,
982986
) -> _TSQLModel:
983987
if not IS_PYDANTIC_V2:
984988
obj = cls._enforce_dict_if_root(obj) # type: ignore[attr-defined] # noqa

0 commit comments

Comments
 (0)