You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
fromalembic.contextimportconfigure# 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!
The text was updated successfully, but these errors were encountered:
Describe the bug
Signature of the
alembic.context.configure
function has changed in 1.11.0, wherecompare_server_default
argument usesColumn
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
):Versions.
Additional context
Have a nice day!
The text was updated successfully, but these errors were encountered: