File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -558,8 +558,8 @@ def from_orm(
558
558
559
559
@classmethod
560
560
def parse_obj (
561
- cls : Type ["SQLModel" ], obj : Any , update : Optional [Dict [str , Any ]] = None
562
- ) -> "SQLModel" :
561
+ cls : Type [_TSQLModel ], obj : Any , update : Optional [Dict [str , Any ]] = None
562
+ ) -> _TSQLModel :
563
563
obj = cls ._enforce_dict_if_root (obj )
564
564
# SQLModel, support update dict
565
565
if update is not None :
@@ -573,7 +573,7 @@ def __repr_args__(self) -> Sequence[Tuple[Optional[str], Any]]:
573
573
574
574
# From Pydantic, override to enforce validation with dict
575
575
@classmethod
576
- def validate (cls : Type ["SQLModel" ], value : Any ) -> "SQLModel" :
576
+ def validate (cls : Type [_TSQLModel ], value : Any ) -> _TSQLModel :
577
577
if isinstance (value , cls ):
578
578
return value .copy () if cls .__config__ .copy_on_model_validation else value
579
579
You can’t perform that action at this time.
0 commit comments