]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
allow aliased() to receive any FromClause
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Jul 2023 18:13:31 +0000 (14:13 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Jul 2023 22:41:21 +0000 (18:41 -0400)
commitc53805b99dcfdddb5d08ebc219845fbe9925182c
tree6e2a55473ad83208b80d5b2f8ce8ddad37b1eace
parent3d89eb1bdcda2757f014bffde5881da3ce5c7463
allow aliased() to receive any FromClause

Fixed some of the typing within the :func:`_orm.aliased` construct to
correctly accept a :class:`.Table` object that's been aliased with
:meth:`.Table.alias`, as well as general support for :class:`.FromClause`
objects to be passed as the "selectable" argument, since this is all
supported.

Change-Id: I6dfd5c93dc2b2f23895fbd8982633f2ed13b5a52
References: #10061
doc/build/changelog/unreleased_20/10061.rst [new file with mode: 0644]
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/util.py
test/orm/test_core_compilation.py
test/typing/plain_files/orm/typed_queries.py