]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: remove ignore unneeded in mypy >= 1.18.1 maint-3.2
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:42:30 +0000 (17:42 +0200)
We can't bump the min mypy on this maintenance branch because it doesn't
support Python 3.8, therefore ignore warnings in this file to
accommodate the min supported mypy version 1.14.

pyproject.toml
tests/types/test_uuid.py

index bb05a44339504e865046ff9b7d2f23f77dcaa02f..7c3fbb841da656c5357f8c25fe2bf90ce862d198 100644 (file)
@@ -65,6 +65,7 @@ disallow_untyped_calls = false
 module = [
     "tests.scripts.spiketest",
     "tests.types.test_range",
+    "tests.types.test_uuid",
 ]
 warn_unused_ignores = false  # for mypy 1.14 on Python 3.8
 
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