]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
run through pyupgrade --py38-plus
authorstankudrow <stankudrow@reply.no>
Fri, 27 Dec 2024 05:23:40 +0000 (08:23 +0300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 27 Dec 2024 23:19:46 +0000 (00:19 +0100)
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py

index 4a590805fb13db007a4a3e57a48c3a703cff2772..1ff118195874f085d10a12d97937b04b12e8ea2c 100644 (file)
@@ -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.
 
index 00700a8e12921553541067d2dd4eb10692a0b5ba..3bcbdd215724ca183c04d0c9b5ea4a013ae12cb0 100644 (file)
@@ -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.