]> 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>
Tue, 18 Nov 2025 19:22:26 +0000 (22:22 +0300)
committerShamil <ashm.tech@proton.me>
Tue, 18 Nov 2025 19:22:26 +0000 (22:22 +0300)
commitefe8cb7ef89cf19befb9b83adadc0da8245be9ce
tree0430d920b8297481fdff21fb4fcb7189cec8f433
parentf6714c8e090b9dd84ac4256ed74eefc1fe9cbddc
Fix type hint for with_for_update() to support tuples of table classes

Fixes #12730

Updated _ForUpdateOfArgument type alias to accept sequences of both
column expressions and FROM clause arguments (tables, ORM entities).
Previously only sequences of column expressions were supported,
causing type checker errors when passing tuples of DeclarativeBase
classes to with_for_update(of=...).
lib/sqlalchemy/sql/selectable.py