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
{{ message }}
Repository navigation
Commit 675b02a
Browse filesBrowse the repository at this point in the historyBrowse files
Make airflow-core typing hold for SQLAlchemy 2.0 and 2.1 (#74629)
SQLAlchemy 2.1 turns Select/Row/Result into TypeVarTuple generics, so
`Select[tuple[X]]` now means a one-column select of a tuple, and rows
unpack to the real (possibly nullable) column types instead of Any.
No parameterised `Select` spelling is valid on both versions, so helpers
that only refine a select they receive are generic over it, and helpers
that build their own select return an unparameterised `Select`. Nullable
columns are narrowed with `is None` checks rather than cast; the pool and
asset-event queries already exclude NULL there, while get_authorized_pools
now skips pools whose name is NULL. The 12-column task instance row, beyond
SQLAlchemy's typed select() overloads, is unpacked into locals declared
with their column types.
Type-checks with mypy on both SQLAlchemy 2.0.54 and 2.1.4.
0 commit comments