From: Daniele Varrazzo Date: Sun, 9 Apr 2023 23:42:14 +0000 (+0200) Subject: chore: bump mypy to 1.2 X-Git-Tag: 3.1.9~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b224995da0ea6b77a3a583bce7f21c699236c0;p=thirdparty%2Fpsycopg.git chore: bump mypy to 1.2 --- diff --git a/psycopg/psycopg/copy.py b/psycopg/psycopg/copy.py index 33322aa61..26a2d9e96 100644 --- a/psycopg/psycopg/copy.py +++ b/psycopg/psycopg/copy.py @@ -461,7 +461,7 @@ class FileWriter(Writer): self.file = file def write(self, data: Buffer) -> None: - self.file.write(data) # type: ignore[arg-type] + self.file.write(data) class AsyncCopy(BaseCopy["AsyncConnection[Any]"]): diff --git a/psycopg/setup.py b/psycopg/setup.py index 6af918aa0..c8790650b 100644 --- a/psycopg/setup.py +++ b/psycopg/setup.py @@ -38,7 +38,7 @@ extras_require = { # Requirements to run the test suite "test": [ "anyio >= 3.6.2", - "mypy >= 1.0", + "mypy >= 1.2", "pproxy >= 2.7", "pytest >= 6.2.5", "pytest-cov >= 3.0", @@ -49,7 +49,7 @@ extras_require = { "black >= 23.1.0", "dnspython >= 2.1", "flake8 >= 4.0", - "mypy >= 0.990", + "mypy >= 1.2", "types-setuptools >= 57.4", "wheel >= 0.37", ], diff --git a/tests/constraints.txt b/tests/constraints.txt index 0e19f20b5..3393d458f 100644 --- a/tests/constraints.txt +++ b/tests/constraints.txt @@ -10,7 +10,7 @@ importlib-metadata == 1.4 # From the 'test' extra anyio == 3.6.2 -mypy == 1.0.0 +mypy == 1.2.0 pproxy == 2.7.0 pytest == 6.2.5 pytest-cov == 3.0.0