From: stankudrow Date: Fri, 27 Dec 2024 05:23:40 +0000 (+0300) Subject: run through pyupgrade --py38-plus X-Git-Tag: 3.3.0.dev1~135^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be1c7f4d5e68385f1aaf65913bca538cfe343781;p=thirdparty%2Fpsycopg.git run through pyupgrade --py38-plus --- diff --git a/psycopg/psycopg/connection.py b/psycopg/psycopg/connection.py index 4a590805f..1ff118195 100644 --- a/psycopg/psycopg/connection.py +++ b/psycopg/psycopg/connection.py @@ -315,7 +315,7 @@ class Connection(BaseConnection[Row]): def notifies( self, *, timeout: float | None = None, stop_after: int | None = None - ) -> Generator[Notify, None, None]: + ) -> Generator[Notify]: """ Yield `Notify` objects as soon as they are received from the database. diff --git a/psycopg/psycopg/connection_async.py b/psycopg/psycopg/connection_async.py index 00700a8e1..3bcbdd215 100644 --- a/psycopg/psycopg/connection_async.py +++ b/psycopg/psycopg/connection_async.py @@ -335,7 +335,7 @@ class AsyncConnection(BaseConnection[Row]): async def notifies( self, *, timeout: float | None = None, stop_after: int | None = None - ) -> AsyncGenerator[Notify, None]: + ) -> AsyncGenerator[Notify]: """ Yield `Notify` objects as soon as they are received from the database.