From: Daniele Varrazzo Date: Sun, 9 Apr 2023 23:42:14 +0000 (+0200) Subject: chore: bump mypy to 1.2 X-Git-Tag: pool-3.2.0~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=464b8089f69b7099f6e623b82f3f65440d4fd7d1;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.cfg b/psycopg/setup.cfg index 2c3871f0a..d8e036ffc 100644 --- a/psycopg/setup.cfg +++ b/psycopg/setup.cfg @@ -66,7 +66,7 @@ pool = psycopg-pool test = anyio >= 3.6.2 - mypy >= 1.0.0 + mypy >= 1.2.0 pproxy >= 2.7 pytest >= 6.2.5 pytest-cov >= 3.0 @@ -75,7 +75,7 @@ dev = black >= 23.1.0 dnspython >= 2.1 flake8 >= 4.0 - mypy >= 1.0.0 + mypy >= 1.2.0 types-setuptools >= 57.4 wheel >= 0.37 docs = 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