]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure ClassVar succeeds in cleanup_mapped_str_annotation
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 13 Oct 2023 19:27:40 +0000 (15:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 13 Oct 2023 19:28:42 +0000 (15:28 -0400)
commit3efd5741fa87a9fc6b3ab7ad9ce323e8845ce933
tree3a9575fca878a8bfff1e6fac46d02ef4f0f6834e
parent86ba04f3ef2acdbf9aae2ccaaa808e82d4aa648e
ensure ClassVar succeeds in cleanup_mapped_str_annotation

Fixed bug in ORM annotated declarative where using a ``ClassVar`` that
nonetheless referred in some way to an ORM mapped class name would fail to
be interpreted as a ``ClassVar`` that's not mapped.

Fixes: #10472
Change-Id: I6606b0f0222ef088e594eb3b0c0653d983d6ff89
doc/build/changelog/unreleased_20/10472.rst [new file with mode: 0644]
lib/sqlalchemy/orm/util.py
test/orm/declarative/test_tm_future_annotations.py