]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: bump mypy version to 1.14
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 20 Dec 2024 17:55:19 +0000 (18:55 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 20 Dec 2024 18:04:11 +0000 (19:04 +0100)
psycopg/setup.cfg
tests/constraints.txt
tests/fix_gc.py
tests/types/test_datetime.py

index 1d27dff62edb919d15e1ecc35c3e9a002ac92f41..4cf1eb42a3d7816ced8e65c86af6dc47b7e0a6af 100644 (file)
@@ -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 =
index 4cb36ef2ce0722287b58c2fa948c5a9b43fb12ff..6d32b397640787fd8ceb6f05c3fc86ac39e6c056 100644 (file)
@@ -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
index 6538e232d8ec28097f8ba7825f03790fc8a5c600..0cf1686b4576d98607b12dff8cc9746515d3637b 100644 (file)
@@ -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:
index 2f283885fb20893536662e73624e42e710d3c8cf..a50b53d18aeb191daa838ed8ddcadab182e0b1ff 100644 (file)
@@ -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)