]> 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:44 +0000 (09:04 -0500)
commit056688596ce0a0713073d0a0b4204c8112a52af3
treec61ae7b8f2167638665aac822ea3984223706561
parenta8d73764b1a548dd39001a1d9998da090e1ecb2c
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
(cherry picked from commit a057c474bf84ccd0508b89aa5428f45c9a644ee3)
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