]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix type hint for with_for_update() to support tuples of table classes
authorShamil <ashm.tech@proton.me>
Wed, 19 Nov 2025 13:02:28 +0000 (08:02 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Nov 2025 14:04:04 +0000 (09:04 -0500)
commita057c474bf84ccd0508b89aa5428f45c9a644ee3
treeb5022545905ca4f690df645762b725fd03f2b6de
parentdeff837bde93d920d7a501c4f0d55fa9ecc993cd
Fix type hint for with_for_update() to support tuples of table classes

Fixed typing issue where :meth:`.Select.with_for_update` would not support
lists of ORM entities in the :paramref:`.Select.with_for_update.of`
parameter. Pull request courtesy Shamil.

Fixes: #12730
Closes: #12988
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12988
Pull-request-sha: 41a38bfe38d8b66da853012e7165cc0cacf7f28a

Change-Id: I61d60a4f4d2b16037da8d5f30e33f5d74fa47374
doc/build/changelog/unreleased_20/12730.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/typing/plain_files/sql/common_sql_element.py