| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Please see also https://github.com/kafai97/sqlmodel/pull/1 which adds the return type to .from_orm. |
Sorry, something went wrong.
Add correct return type in from_orm
Sorry, something went wrong.
|
Indeed! Thanks for pointing that out. Hopefully there will soon be a release. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
For now, whenever .from_orm or .parse_obj method was called on a SQLModel, it will return SQLModel type only instead of the actually model class.
This PR applies generic TypeVar for those methods to generate a more precise typing.