]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
allow single tables and entities for "of"
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 29 Jan 2023 04:41:42 +0000 (23:41 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 29 Jan 2023 14:54:25 +0000 (09:54 -0500)
commitcae662a6383d3ae8f3673c70c3118ea3a1a1606e
treec9cb53c1c7a884b7aa9256fdc7620f35c570926c
parentb99b0c522ddb94468da27867ddfa1f7e2633c920
allow single tables and entities for "of"

Opened up typing on :meth:`.Select.with_for_update.of` to also accept table
and mapped class arguments, as seems to be available for the MySQL dialect.

Fixes: #9174
Change-Id: I15659d7084657564bd5a2aa55ef0e4db51b91247
doc/build/changelog/unreleased_20/9174.rst [new file with mode: 0644]
lib/sqlalchemy/sql/_typing.py
lib/sqlalchemy/sql/selectable.py
test/ext/mypy/plain_files/common_sql_element.py