]> 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:23:52 +0000 (16:23 -0500)
commitad4a645cac2062ef9ca3a88790cf487f07565f3e
tree839e5bea26ca85887bebba2690faa69eace8896d
parenta0cfc934dc1286f24f3e769b305cf2faaa818302
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
(cherry picked from commit aded8b11d9eccbd1f2b645a94338e34a3d234bc9)
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