]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
double guard import issue
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Nov 2025 14:56:39 +0000 (09:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 4 Nov 2025 15:25:35 +0000 (10:25 -0500)
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

.pre-commit-config.yaml
lib/sqlalchemy/util/langhelpers.py
pyproject.toml

index 134d734484b5d1ea935083e4062375c2bcaa4ba4..8d730ca2d41fe27113b8bd1abbd0bad8be3812c7 100644 (file)
@@ -7,7 +7,7 @@ repos:
     -   id: black
 
 -   repo: https://github.com/sqlalchemyorg/zimports
-    rev: v0.6.2
+    rev: v0.6.3
     hooks:
     -   id: zimports
 
index 53d6cb1e8fef5475ec093f5a2323fd8825e8eff9..a8313d08e10e6bb2da03085d9c0352b2433db93a 100644 (file)
@@ -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
index b5a378974ade1b0c44772164fb364ef5f6a13759..c774afea65bcf3e73a8dbf25a4baeaf6e7af6835 100644 (file)
@@ -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 = [