From 4aeddf569f39decabda92c9a5803d28bef5e4779 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 22 Jul 2025 02:16:21 +0200 Subject: [PATCH] chore: bump mypy to 1.17 --- psycopg/pyproject.toml | 2 +- tests/constraints.txt | 2 +- tests/types/test_range.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/psycopg/pyproject.toml b/psycopg/pyproject.toml index 87e602322..0aa60e460 100644 --- a/psycopg/pyproject.toml +++ b/psycopg/pyproject.toml @@ -69,7 +69,7 @@ pool = [ ] test = [ "anyio >= 4.0", - "mypy >= 1.16", + "mypy >= 1.17", "pproxy >= 2.7", "pytest >= 6.2.5", "pytest-cov >= 3.0", diff --git a/tests/constraints.txt b/tests/constraints.txt index 1a85eaeab..a2dd5d84a 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.16.0 +mypy == 1.17.0 pproxy == 2.7.0 pytest == 6.2.5 pytest-cov == 3.0.0 diff --git a/tests/types/test_range.py b/tests/types/test_range.py index d097b12fa..3b9792281 100644 --- a/tests/types/test_range.py +++ b/tests/types/test_range.py @@ -128,7 +128,7 @@ def test_dump_builtin_array_wrapper(conn, wrapper, fmt_in): @pytest.mark.parametrize("pgtype, min, max, bounds", samples) @pytest.mark.parametrize("fmt_in", PyFormat) def test_dump_builtin_range(conn, pgtype, min, max, bounds, fmt_in): - r = Range(min, max, bounds) # type: ignore[var-annotated] + r = Range(min, max, bounds) sub = type2sub[pgtype] cur = conn.execute( f"select {pgtype}(%s::{sub}, %s::{sub}, %s) = %{fmt_in.value}", @@ -176,7 +176,7 @@ def test_load_builtin_array(conn, pgtype, fmt_out): @pytest.mark.parametrize("pgtype, min, max, bounds", samples) @pytest.mark.parametrize("fmt_out", pq.Format) def test_load_builtin_range(conn, pgtype, min, max, bounds, fmt_out): - r = Range(min, max, bounds) # type: ignore[var-annotated] + r = Range(min, max, bounds) sub = type2sub[pgtype] cur = conn.cursor(binary=fmt_out) cur.execute(f"select {pgtype}(%s::{sub}, %s::{sub}, %s)", (min, max, bounds)) -- 2.47.3