]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: bump mypy to 1.17
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 22 Jul 2025 00:16:21 +0000 (02:16 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 22 Jul 2025 00:16:21 +0000 (02:16 +0200)
psycopg/pyproject.toml
tests/constraints.txt
tests/types/test_range.py

index 87e6023225183332223baede0d722d1e8a36abf6..0aa60e460990a6172d5ff73c7e5097033a48bbf6 100644 (file)
@@ -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",
index 1a85eaeab98823e4e10560c966b73bf2925eeba9..a2dd5d84afa80268549e7e168ab0d3fceecdeae1 100644 (file)
@@ -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
index d097b12fa00f8811cabb56d75de2dce7e83f5a36..3b979228188092473250fc4459573acbda8055ce 100644 (file)
@@ -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))