]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: bump mypy, remove a now unneeded ignore
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Sep 2025 15:18:37 +0000 (17:18 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Sep 2025 15:41:45 +0000 (17:41 +0200)
psycopg/pyproject.toml
tests/constraints.txt
tests/types/test_uuid.py

index 754b5a2e1fcb4d04df01792c9f02a42413da67bd..8113ab44a1494fda8b48149158f11272fc7df9d2 100644 (file)
@@ -70,7 +70,7 @@ pool = [
 ]
 test = [
     "anyio >= 4.0",
-    "mypy >= 1.17",
+    "mypy >= 1.18.1",
     "pproxy >= 2.7",
     "pytest >= 6.2.5",
     "pytest-cov >= 3.0",
@@ -84,7 +84,7 @@ dev = [
     "flake8 >= 4.0",
     "isort[colors] >= 6.0",
     "isort-psycopg",
-    "mypy >= 1.17",
+    "mypy >= 1.18.1",
     "pre-commit >= 4.0.1",
     "types-setuptools >= 57.4",
     "types-shapely >= 2.0",
index a2dd5d84afa80268549e7e168ab0d3fceecdeae1..4e9cbf6e09810f1f281287b810414a476a2e938e 100644 (file)
@@ -10,7 +10,7 @@ importlib-metadata == 1.4
 
 # From the 'test' extra
 anyio == 4.0
-mypy == 1.17.0
+mypy == 1.18.1
 pproxy == 2.7.0
 pytest == 6.2.5
 pytest-cov == 3.0.0
index c8dd6c0a84c113485fef91937faed666662cdab2..3c0567d17b8992b098d3aabe8605b1997e767504 100644 (file)
@@ -58,9 +58,7 @@ def test_uuid_load(conn, fmt_out, val):
     assert res.is_safe == uuid_val.is_safe
     #  https://github.com/python/typeshed/issues/8832
     slots = ("int", "is_safe", "__weakref__")
-    assert (
-        UUID.__slots__ == slots  # type: ignore[attr-defined]
-    ), "UUID structure changed"
+    assert UUID.__slots__ == slots, "UUID structure changed"
 
 
 @pytest.mark.slow