]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
check for recursion with container types
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Mar 2023 14:19:32 +0000 (10:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Mar 2023 20:01:16 +0000 (16:01 -0400)
commit2cec50201b8a2ddc0f678be7413ec532616c5c90
tree1c217a26d06e51d0e6b0769dd75baff2ed128ffc
parentc7ce7ff0225fe0ddaf63f0706429b885410de365
check for recursion with container types

Fixed issue in ORM Annotated Declarative where using a recursive type (e.g.
using a nested Dict type) would result in a recursion overflow in the ORM's
annotation resolution logic, even if this datatype were not necessary to
map the column.

Fixes: #9553
Change-Id: Ied99dc0d47276c6e9c23fa9df5fc65f7736d65cf
doc/build/changelog/unreleased_20/9553.rst [new file with mode: 0644]
lib/sqlalchemy/util/typing.py
test/orm/declarative/test_tm_future_annotations_sync.py
test/orm/declarative/test_typed_mapping.py