From 3afd280e6847144efdc31602bd935b58b6f23b6f Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Tue, 21 Dec 2021 09:24:34 +0100 Subject: [PATCH] Use mypy 0.920 One 'type: ignore' is no longer needed, it seems. --- psycopg/psycopg/rows.py | 2 +- psycopg/setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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", -- 2.47.2