]> 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:45:44 +0000 (10:45 +0200)
psycopg/psycopg/copy.py
psycopg/setup.py
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 6af918aa062f53b57e23d62b61f6258fc1623ff9..c8790650bb54224d191c15bb30b2b6b6e19ade46 100644 (file)
@@ -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",
     ],
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