We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
main.py
1 parent cbf9f50 commit 6cebb55Copy full SHA for 6cebb55
sqlmodel/main.py
@@ -607,7 +607,7 @@ def get_config(name: str) -> Any:
607
# This could be done by reading new_cls.model_config['table'] in FastAPI, but
608
# that's very specific about SQLModel, so let's have another config that
609
# other future tools based on Pydantic can use.
610
- new_cls.model_config["read_from_attributes"] = True
+ new_cls.model_config["read_from_attributes"] = True # type: ignore[typeddict-unknown-key]
611
# For compatibility with older versions
612
# TODO: remove this in the future
613
new_cls.model_config["read_with_orm_mode"] = True
0 commit comments