From: Dylan Young Date: Fri, 3 Apr 2026 17:32:43 +0000 (-0300) Subject: chore(deps): upgrade mypy to version 2.1.0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e8a4e7ff4867af4869dc443f111c0ece1e9ebc7;p=thirdparty%2Fpsycopg.git chore(deps): upgrade mypy to version 2.1.0 --- diff --git a/psycopg/pyproject.toml b/psycopg/pyproject.toml index 5fbf60bc2..d1ea1a5ad 100644 --- a/psycopg/pyproject.toml +++ b/psycopg/pyproject.toml @@ -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", diff --git a/psycopg_pool/pyproject.toml b/psycopg_pool/pyproject.toml index 6d56600f5..0429e4696 100644 --- a/psycopg_pool/pyproject.toml +++ b/psycopg_pool/pyproject.toml @@ -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", diff --git a/pyproject.toml b/pyproject.toml index bbee9c4dc..1674b5e8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/tests/constraints.txt b/tests/constraints.txt index c17d59945..6c3b13ebe 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.19.0 +mypy == 2.1.0 pproxy == 2.7.0 pytest == 6.2.5 pytest-cov == 3.0.0