]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
run declarative scan for non-mapped annotated if allow_unmapped
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 20 Oct 2023 14:19:35 +0000 (10:19 -0400)
committermike bayer <mike_mp@zzzcomputing.com>
Fri, 20 Oct 2023 18:13:35 +0000 (18:13 +0000)
commitf933d8bb6b6f852d700cdef8dda5d0edff7c148f
tree685291f70e164f018520c8441ab29630cc762d96
parent97846d13c7bbee23f61eb874f22f04faba3754dd
run declarative scan for non-mapped annotated if allow_unmapped

Fixed issue where the ``__allow_unmapped__`` directive failed to allow for
legacy :class:`.Column` / :func:`.deferred` mappings that nonetheless had
annotations such as ``Any`` or a specific type without ``Mapped[]`` as
their type, without errors related to locating the attribute name.

issue is not ticketed yet but is coming

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