From: Daniele Varrazzo Date: Fri, 30 May 2025 21:30:45 +0000 (+0100) Subject: chore: bump mypy version X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6aa81e1c87c33da3f59fd254aaa3c5fab613103f;p=thirdparty%2Fpsycopg.git chore: bump mypy version --- diff --git a/psycopg/pyproject.toml b/psycopg/pyproject.toml index 348e426cd..87e602322 100644 --- a/psycopg/pyproject.toml +++ b/psycopg/pyproject.toml @@ -69,7 +69,7 @@ pool = [ ] test = [ "anyio >= 4.0", - "mypy >= 1.14", + "mypy >= 1.16", "pproxy >= 2.7", "pytest >= 6.2.5", "pytest-cov >= 3.0", diff --git a/tests/constraints.txt b/tests/constraints.txt index 2119387c4..1a85eaeab 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.14.0 +mypy == 1.16.0 pproxy == 2.7.0 pytest == 6.2.5 pytest-cov == 3.0.0 diff --git a/tests/scripts/spiketest.py b/tests/scripts/spiketest.py index 82d274fd8..b66991302 100644 --- a/tests/scripts/spiketest.py +++ b/tests/scripts/spiketest.py @@ -105,7 +105,7 @@ class DelayedConnection(psycopg.Connection[Row]): """A connection adding a delay to the connection time.""" @classmethod - def connect(cls, conninfo, conn_delay=0, **kwargs): + def connect(cls, conninfo, conn_delay=0, **kwargs): # type: ignore[override] t0 = time.time() conn = super().connect(conninfo, **kwargs) t1 = time.time()