Skip to content

Commit a28075f

Browse files
committed
make ignore statement more specific
1 parent 479bbb6 commit a28075f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def init_pydantic_private_attrs(new_object: InstanceOrType["SQLModel"]) -> None:
123123
object.__setattr__(new_object, "__pydantic_private__", None)
124124

125125
def get_annotations(class_dict: Dict[str, Any]) -> Dict[str, Any]:
126-
return class_dict.get("__annotations__", {}) # type: ignore
126+
return class_dict.get("__annotations__", {}) # type: ignore[no-any-return]
127127

128128
def is_table_model_class(cls: Type[Any]) -> bool:
129129
config = getattr(cls, "model_config", {})

0 commit comments

Comments
 (0)