From: Denis Laxalde Date: Tue, 21 Dec 2021 08:24:34 +0000 (+0100) Subject: Use mypy 0.920 X-Git-Tag: pool-3.1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3afd280e6847144efdc31602bd935b58b6f23b6f;p=thirdparty%2Fpsycopg.git Use mypy 0.920 One 'type: ignore' is no longer needed, it seems. --- diff --git a/psycopg/psycopg/rows.py b/psycopg/psycopg/rows.py index 255581897..55574d839 100644 --- a/psycopg/psycopg/rows.py +++ b/psycopg/psycopg/rows.py @@ -175,7 +175,7 @@ def class_row(cls: Type[T]) -> BaseRowFactory[T]: names = [d.name for d in desc] def class_row__(values: Sequence[Any]) -> T: - return cls(**dict(zip(names, values))) # type: ignore + return cls(**dict(zip(names, values))) return class_row__ diff --git a/psycopg/setup.py b/psycopg/setup.py index a6f066529..68f5d8193 100644 --- a/psycopg/setup.py +++ b/psycopg/setup.py @@ -37,7 +37,7 @@ extras_require = { ], # Requirements to run the test suite "test": [ - "mypy >= 0.910", + "mypy >= 0.920", "pproxy ~= 2.7.8", "pytest ~= 6.2.5", "pytest-asyncio ~= 0.16.0", @@ -50,7 +50,7 @@ extras_require = { "black", "dnspython ~= 2.1.0", "flake8 ~= 4.0.1", - "mypy >= 0.910", + "mypy >= 0.920", "pytest-mypy >= 0.8.1", "types-setuptools >= 57.4.0", "wheel",