From: Daniele Varrazzo Date: Fri, 20 Dec 2024 17:55:19 +0000 (+0100) Subject: chore: bump mypy version to 1.14 X-Git-Tag: 3.2.4~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=303c064b0ccb6fdde99e4884ed037571eca63b14;p=thirdparty%2Fpsycopg.git chore: bump mypy version to 1.14 --- diff --git a/psycopg/setup.cfg b/psycopg/setup.cfg index 1d27dff62..4cf1eb42a 100644 --- a/psycopg/setup.cfg +++ b/psycopg/setup.cfg @@ -68,7 +68,7 @@ pool = psycopg-pool test = anyio >= 4.0 - mypy >= 1.11 + mypy >= 1.14 pproxy >= 2.7 pytest >= 6.2.5 pytest-cov >= 3.0 @@ -79,7 +79,7 @@ dev = codespell >= 2.2 dnspython >= 2.1 flake8 >= 4.0 - mypy >= 1.11 + mypy >= 1.14 types-setuptools >= 57.4 wheel >= 0.37 docs = diff --git a/tests/constraints.txt b/tests/constraints.txt index 4cb36ef2c..6d32b3976 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.11.0 +mypy == 1.14.0 pproxy == 2.7.0 pytest == 6.2.5 pytest-cov == 3.0.0 diff --git a/tests/fix_gc.py b/tests/fix_gc.py index 6538e232d..0cf1686b4 100644 --- a/tests/fix_gc.py +++ b/tests/fix_gc.py @@ -27,7 +27,7 @@ if sys.version_info[:2] == (3, 10): # Keeping the guard as strict as possible, to be extended if other types # or versions are necessary. try: - from _contextvars import Context # type: ignore + from _contextvars import Context except ImportError: pass else: diff --git a/tests/types/test_datetime.py b/tests/types/test_datetime.py index 2f283885f..a50b53d18 100644 --- a/tests/types/test_datetime.py +++ b/tests/types/test_datetime.py @@ -782,7 +782,7 @@ def as_time(s): off = None if "," in s: - rv = dt.time(*map(int, s.split(","))) # type: ignore[arg-type] + rv = dt.time(*map(int, s.split(","))) else: rv = getattr(dt.time, s) if off: @@ -804,7 +804,7 @@ def as_dt(s): def as_naive_dt(s): if "," in s: - rv = dt.datetime(*map(int, s.split(","))) # type: ignore[arg-type] + rv = dt.datetime(*map(int, s.split(","))) else: rv = getattr(dt.datetime, s)