From: Mike Bayer Date: Tue, 4 Nov 2025 14:56:39 +0000 (-0500) Subject: double guard import issue X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4c08c07d0ea4d18d384925f4c7d46f05566f42b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git double guard import issue 3.13 has an import issue, 3.14 has a "hey why are you ignoring here" issue, solve them both this then cascaded into zimport uncooperativeness so had to fix that and put out 0.6.3, so this becomes more of a thing Change-Id: I5c01e48af2af14be17c3e5f2a53e7913444b98eb --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 134d734484..8d730ca2d4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: - id: black - repo: https://github.com/sqlalchemyorg/zimports - rev: v0.6.2 + rev: v0.6.3 hooks: - id: zimports diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py index 53d6cb1e8f..a8313d08e1 100644 --- a/lib/sqlalchemy/util/langhelpers.py +++ b/lib/sqlalchemy/util/langhelpers.py @@ -62,7 +62,7 @@ if compat.py314: # vendor a minimal form of get_annotations per # https://github.com/python/cpython/issues/133684#issuecomment-2863841891 - from annotationlib import call_annotate_function # type: ignore + from annotationlib import call_annotate_function # type: ignore[import-not-found,unused-ignore] # noqa: E501 from annotationlib import Format def _get_and_call_annotate(obj, format): # noqa: A002 diff --git a/pyproject.toml b/pyproject.toml index b5a378974a..c774afea65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -184,7 +184,7 @@ lint = [ "pygments", "black==25.9.0", "slotscheck>=0.17.0", - "zimports", # required by generate_tuple_map_overloads + "zimports>=0.6.3", # required by generate_tuple_map_overloads ] mypy = [