]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: bump mypy to 1.2
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 9 Apr 2023 23:42:14 +0000 (01:42 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 10 Apr 2023 08:44:35 +0000 (10:44 +0200)
psycopg/psycopg/copy.py
psycopg/setup.cfg
tests/constraints.txt

index 33322aa61f8f4e2b0c13275269028ec379336f75..26a2d9e96509a3f878d3c1a4379db43fbd9f7e89 100644 (file)
@@ -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]"]):
index 2c3871f0a334e7e45e681ed6261cb3c841795d21..d8e036ffcea8158b9126198a272c58906db7c56a 100644 (file)
@@ -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 =
index 0e19f20b5295670ee65db032764cda00c06b7be3..3393d458fe855efd1b14d276243fa356119c219e 100644 (file)
@@ -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