]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
accommodate no cls info found in _scan_declarative
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Jun 2021 16:52:42 +0000 (12:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Jun 2021 16:53:52 +0000 (12:53 -0400)
commit6ca7c2eb5294c255b3c1f62ec1445e3e5d52d4ba
treefd35b55d3be1a984dcf7478583177e7e65426c13
parent73573a6fda1c3ebde27a169199b1f33fccb1e415
accommodate no cls info found in _scan_declarative

Fixed issue in mypy plugin where class info for a custom declarative base
would not be handled correctly on a cached mypy pass, leading to an
AssertionError being raised.

Fixes: #6476
Change-Id: If78340673e6a4d16d8f7cf787ce3bdb02c8bd47b
doc/build/changelog/unreleased_14/6476.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mypy/decl_class.py
lib/sqlalchemy/ext/mypy/util.py
test/ext/mypy/incremental/ticket_6476/__init__.py [new file with mode: 0644]
test/ext/mypy/incremental/ticket_6476/base.py [new file with mode: 0644]
test/ext/mypy/incremental/ticket_6476/patch1.testpatch [new file with mode: 0644]
test/ext/mypy/incremental/ticket_6476/table.py [new file with mode: 0644]