Skip to content

Commit 6cebb55

Browse files
committed
Fix mypy warning in main.py
1 parent cbf9f50 commit 6cebb55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def get_config(name: str) -> Any:
607607
# This could be done by reading new_cls.model_config['table'] in FastAPI, but
608608
# that's very specific about SQLModel, so let's have another config that
609609
# other future tools based on Pydantic can use.
610-
new_cls.model_config["read_from_attributes"] = True
610+
new_cls.model_config["read_from_attributes"] = True # type: ignore[typeddict-unknown-key]
611611
# For compatibility with older versions
612612
# TODO: remove this in the future
613613
new_cls.model_config["read_with_orm_mode"] = True

0 commit comments

Comments
 (0)