I am using alembic in a project. Everything works as expected, but when checking the types with mypy I am getting:
error: Module "alembic" has no attribute "op" [attr-defined]
error: Module "alembic" has no attribute "context" [attr-defined]
Any idea how to resolve this? Do I need to install types? Is there something else that I am missing?
opandcontextonly. You need onlyalembicinstalled into the same environment wheremypylives (e.g. add it intoadditional_dependenciesof .pre-commit-config). Relevant issue