From: Daniele Varrazzo Date: Fri, 12 Sep 2025 15:18:37 +0000 (+0200) Subject: chore: remove ignore unneeded in mypy >= 1.18.1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaint-3.2;p=thirdparty%2Fpsycopg.git chore: remove ignore unneeded in mypy >= 1.18.1 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. --- diff --git a/pyproject.toml b/pyproject.toml index bb05a4433..7c3fbb841 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/tests/types/test_uuid.py b/tests/types/test_uuid.py index c8dd6c0a8..3c0567d17 100644 --- a/tests/types/test_uuid.py +++ b/tests/types/test_uuid.py @@ -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