Describe the bug
Signature of the alembic.context.configure function has changed in 1.11.0, where compare_server_default argument uses Column classes, which should be generics. This kind of definition produces type checkers warnings.
Expected behavior
No warnings reported by static type checkers
To Reproduce
E.g. using VSCode with Pyright in "strict" mode (usually it is a part of env.py):
from alembic.context import configure
# Throws: Type of "configure" is partially unknown
Versions.
- OS: MacOS
- Python: 3.11.3
- Alembic: 1.11.0
- SQLAlchemy: 2.0.13
- Database: Postgres 15
- DBAPI: asyncpg
Additional context
Have a nice day!
Describe the bug
Signature of the
alembic.context.configurefunction has changed in 1.11.0, wherecompare_server_defaultargument usesColumnclasses, which should be generics. This kind of definition produces type checkers warnings.Expected behavior
No warnings reported by static type checkers
To Reproduce
E.g. using VSCode with Pyright in "strict" mode (usually it is a part of
env.py):Versions.
Additional context
Have a nice day!