File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def init_pydantic_private_attrs(new_object: InstanceOrType["SQLModel"]) -> None:
116116 object .__setattr__ (new_object , "__pydantic_private__" , None )
117117
118118 def get_annotations (class_dict : Dict [str , Any ]) -> Dict [str , Any ]:
119- return class_dict .get ("__annotations__" , {})
119+ return class_dict .get ("__annotations__" , {}) # type: ignore[no-any-return]
120120
121121 def is_table_model_class (cls : Type [Any ]) -> bool :
122122 config = getattr (cls , "model_config" , {})
@@ -173,7 +173,7 @@ def is_field_noneable(field: "FieldInfo") -> bool:
173173 if not field .is_required ():
174174 if field .default is Undefined :
175175 return False
176- if field .annotation is None or field .annotation is NoneType : # type: ignore[comparison-overlap]
176+ if field .annotation is None or field .annotation is NoneType :
177177 return True
178178 return False
179179 return False
Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ def Relationship(
477477class SQLModelMetaclass (ModelMetaclass , DeclarativeMeta ):
478478 __sqlmodel_relationships__ : Dict [str , RelationshipInfo ]
479479 model_config : SQLModelConfig
480- model_fields : Dict [str , FieldInfo ] # type: ignore[assignment]
480+ model_fields : Dict [str , FieldInfo ]
481481 __config__ : Type [SQLModelConfig ]
482482 __fields__ : Dict [str , ModelField ] # type: ignore[assignment]
483483
@@ -839,7 +839,7 @@ def __tablename__(cls) -> str:
839839 return cls .__name__ .lower ()
840840
841841 @classmethod
842- def model_validate (
842+ def model_validate ( # type: ignore[override]
843843 cls : Type [_TSQLModel ],
844844 obj : Any ,
845845 * ,
@@ -857,7 +857,7 @@ def model_validate(
857857 update = update ,
858858 )
859859
860- def model_dump (
860+ def model_dump ( # type: ignore[override]
861861 self ,
862862 * ,
863863 mode : Union [Literal ["json" , "python" ], str ] = "python" ,
You can’t perform that action at this time.
0 commit comments