]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use fully qualified, locatable names for all use of api.named_type()
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Dec 2021 21:21:33 +0000 (16:21 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Dec 2021 21:22:49 +0000 (16:22 -0500)
commitaded8b11d9eccbd1f2b645a94338e34a3d234bc9
tree13addfc556c77adc515e273d82d0fca04ea25c3f
parentab75ec2adb35b249ae6e700f965eb52c0340da69
use fully qualified, locatable names for all use of api.named_type()

Fixed mypy regression where the release of mypy 0.930 added additional
internal checks to the format of "named types", requiring that they be
fully qualified and locatable. This broke the mypy plugin for SQLAlchemy,
raising an assertion error, as there was use of symbols such as
``__builtins__`` and other un-locatable or unqualified names that
previously had not raised any assertions.

Fixes: #7496
Change-Id: I037680606a1d51158ef6503508ec76c5d5adc946
doc/build/changelog/unreleased_14/7496.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mypy/apply.py
lib/sqlalchemy/ext/mypy/decl_class.py
lib/sqlalchemy/ext/mypy/infer.py
lib/sqlalchemy/ext/mypy/names.py
lib/sqlalchemy/ext/mypy/plugin.py