Skip to content

Commit 902f3a1

Browse files
committed
fix signature of model_validate
1 parent 8fda409 commit 902f3a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmodel/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,9 @@ def model_validate(
846846
strict: Union[bool, None] = None,
847847
from_attributes: Union[bool, None] = None,
848848
context: Union[Dict[str, Any], None] = None,
849-
update: Union[Dict[str, Any], None] = None,
849+
**kwargs: Any,
850850
) -> _TSQLModel:
851+
update = kwargs.get("update", None)
851852
return sqlmodel_validate(
852853
cls=cls,
853854
obj=obj,

0 commit comments

Comments
 (0)