]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use independent TypeVar for ColumnElement.cast
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 8 Mar 2023 17:35:27 +0000 (12:35 -0500)
committermike bayer <mike_mp@zzzcomputing.com>
Wed, 8 Mar 2023 21:33:12 +0000 (21:33 +0000)
commit1504aa9f9f95964ee73030a76941b8169e04d5bc
tree2e0dd37bd29356c9a5e03468d384d31a56275521
parentbcbb4007bbfa5102d7e53fea8aac50e528d4d1f2
Use independent TypeVar for ColumnElement.cast

Fixed typing issue where :meth:`.ColumnElement.cast` did not allow a
:class:`.TypeEngine` argument independent of the type of the
:class:`.ColumnElement` itself, which is the purpose of
:meth:`.ColumnElement.cast`.

Fixes: #9451
Change-Id: I68119c6a9e8bf896715eea79be2b4f36b1c141de
doc/build/changelog/unreleased_20/9451.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
test/ext/mypy/plain_files/sql_operations.py