Open LordWolfenstein opened 1 year ago
As a workaround, you can import those from sqlalchemy.orm.decl_api
instead
in my case, it was just necessary to delete stubs: pip uninstall sqlalchemy-stubs pip uninstall sqlalchemy2-stubs
in my case, it was just necessary to delete stubs: pip uninstall sqlalchemy-stubs pip uninstall sqlalchemy2-stubs
Thank you! This solved it for me as well.
When I create a database following this guide: https://docs.sqlalchemy.org/en/20/orm/declarative_styles.html Mypy says imports are missing and missing argument. The code itself works but I get errors with mypy. I am using Python 3.9
My file:
My errors: