]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore(deps): upgrade mypy to version 2.1.0
authorDylan Young <dylanyoungmeijer@gmail.com>
Fri, 3 Apr 2026 17:32:43 +0000 (14:32 -0300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 26 Jun 2026 15:28:51 +0000 (17:28 +0200)
psycopg/pyproject.toml
psycopg_pool/pyproject.toml
pyproject.toml
tests/constraints.txt

index 5fbf60bc2b0792aa58eaa507575bc07308e6d1c4..d1ea1a5ad34654f2a896120ce06cfc1a1de3ad00 100644 (file)
@@ -71,7 +71,7 @@ pool = [
 test = [
     "anyio >= 4.0",
     # Mypy >= 1.19 depends on librt, not available for PyPy.
-    "mypy >= 1.19.0; implementation_name != \"pypy\"",
+    "mypy >= 2.1.0; implementation_name != \"pypy\"",
     "pproxy >= 2.7",
     "pytest >= 6.2.5",
     "pytest-cov >= 3.0",
@@ -86,7 +86,7 @@ dev = [
     "flake8 >= 4.0",
     "isort[colors] >= 6.0",
     "isort-psycopg",
-    "mypy >= 1.19.0",
+    "mypy >= 2.1.0",
     "pre-commit >= 4.0.1",
     "types-setuptools >= 57.4",
     "types-shapely >= 2.0",
index 6d56600f572ca1b19298cc6db275d25a39afdb58..0429e469650f0fc987cf85ab0b18c2289bf76892 100644 (file)
@@ -56,7 +56,7 @@ content-type = "text/x-rst"
 [project.optional-dependencies]
 test = [
     "anyio >= 4.0",
-    "mypy >= 1.14",
+    "mypy >= 2.1.0",
     "pproxy >= 2.7",
     "pytest >= 6.2.5",
     "pytest-cov >= 3.0",
index bbee9c4dc48eadbe3845fdee90a90b3ceb5ca0cd..1674b5e8d8d7a46c0ee4973662783ee6a4b6461d 100644 (file)
@@ -34,8 +34,6 @@ files = [
 ]
 warn_unused_ignores = true
 show_error_codes = true
-disable_bytearray_promotion = true
-disable_memoryview_promotion = true
 strict = true
 exclude = '''(?x)(
     ^ docs/lib/.*\.py
index c17d59945cd538162578846d8f5bbbc806508384..6c3b13ebe217a625b679012650b89f1229ced1f3 100644 (file)
@@ -10,7 +10,7 @@ importlib-metadata == 1.4
 
 # From the 'test' extra
 anyio == 4.0
-mypy == 1.19.0
+mypy == 2.1.0
 pproxy == 2.7.0
 pytest == 6.2.5
 pytest-cov == 3.0.0