]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
additional de-stringify pass for unions
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 8 Sep 2022 17:19:08 +0000 (13:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 8 Sep 2022 18:15:50 +0000 (14:15 -0400)
commitfcd298e1afe9b309de34d28b35e4debc3940d6b9
treef65417b854556cf0ff1b199f38e0be942dc1e933
parent36803bc5674e30741021462f77cd91d42b717066
additional de-stringify pass for unions

the change in c3cfee5b00a40790c18d took out
a pass for de-stringify that broke some un-tested cases
for Optional with future annotations mode.   Adding tests
for this revealed that this was a subset of
a more general case where Union is presented
with ForwardRefs inside of it matching up within the type
map, which wasn't working before either, fixed that as well with
an additional de-stringify for elements within the Union.

Fixes: #8478
Change-Id: I8804cf6c67f14d10804584e1cddd2cfaa2376654
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/util/typing.py
test/orm/declarative/test_tm_future_annotations.py