From 1cd7fa9cb8247b1c30f954d85193d5899d1e99d8 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 24 Aug 2021 22:59:58 +0200 Subject: [PATCH] Please mypy and NoReturn function --- psycopg/psycopg/cursor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/psycopg/psycopg/cursor.py b/psycopg/psycopg/cursor.py index 1c24af237..2df57ca0c 100644 --- a/psycopg/psycopg/cursor.py +++ b/psycopg/psycopg/cursor.py @@ -286,8 +286,7 @@ class BaseCursor(Generic[ConnectionType, Row]): else: # Errors, unexpected values - self._raise_from_results([res]) - return None # TODO: shouldn't be needed + return self._raise_from_results([res]) def _start_query(self, query: Optional[Query] = None) -> PQGen[None]: """Generator to start the processing of a query. -- 2.47.3