From: Daniele Varrazzo Date: Fri, 12 Sep 2025 15:18:37 +0000 (+0200) Subject: chore: bump mypy, remove a now unneeded ignore X-Git-Tag: 3.3.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4109765ef9a87c0e6fef093ddccf5bb6dfe56b9;p=thirdparty%2Fpsycopg.git chore: bump mypy, remove a now unneeded ignore --- diff --git a/psycopg/pyproject.toml b/psycopg/pyproject.toml index 754b5a2e1..8113ab44a 100644 --- a/psycopg/pyproject.toml +++ b/psycopg/pyproject.toml @@ -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", diff --git a/tests/constraints.txt b/tests/constraints.txt index a2dd5d84a..4e9cbf6e0 100644 --- a/tests/constraints.txt +++ b/tests/constraints.txt @@ -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 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