]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
update typing for mypy 1.11; pin plugin to <1.11
authorFederico Caselli <cfederico87@gmail.com>
Mon, 22 Jul 2024 21:17:45 +0000 (23:17 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Jul 2024 16:21:34 +0000 (12:21 -0400)
commit6ed8e6920ad9d29cd32b29ad237caf7b8d52bcf6
tree7ee06154051695413793b48144491b72368fbfb9
parent0345f0392d412fec2764fd51778fc8f42d9911f8
update typing for mypy 1.11; pin plugin to <1.11

Fixed internal typing issues to establish compatibility with mypy 1.11.0.
Note that this does not include issues which have arisen with the
deprecated mypy plugin used by SQLAlchemy 1.4-style code; see the addiional
change note for this plugin indicating revised compatibility.

The legacy mypy plugin is no longer fully functional with the latest series
of mypy 1.11.0, as changes in the mypy interpreter are no longer compatible
with the approach used by the plugin.  If code is dependent on the legacy
mypy plugin with sqlalchemy2-stubs, it's recommended to pin mypy to be
below the 1.11.0 series.    Seek upgrading to the 2.0 series of SQLAlchemy
and migrating to the modern type annotations.

Change-Id: Ib8fef93ede588430dc0f7ed44ef887649a415821
(cherry picked from commit 156fef61135a55c6ad17765b64155801f1dbea66)
19 files changed:
doc/build/changelog/unreleased_14/mypy1110.rst [new file with mode: 0644]
doc/build/changelog/unreleased_20/mypy1110.rst [new file with mode: 0644]
doc/build/orm/extensions/mypy.rst
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/ext/mypy/util.py
lib/sqlalchemy/orm/descriptor_props.py
lib/sqlalchemy/orm/mapped_collection.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/util/compat.py
lib/sqlalchemy/util/langhelpers.py
test/ext/mypy/test_mypy_plugin_py3k.py
tox.ini