]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Definition with a wrong default changed into declaration
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 31 Mar 2020 16:43:04 +0000 (05:43 +1300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 31 Mar 2020 16:43:04 +0000 (05:43 +1300)
psycopg3/waiting.py

index f521307a85966e4bdbd3a4f51269e930e42ae271..0128cb290f8fe1ab86d44af60bf4948dca330803 100644 (file)
@@ -73,7 +73,7 @@ async def wait_async(gen: Generator[Tuple[int, Wait], Ready, RV]) -> RV:
     # Not sure this is the best implementation but it's a start.
     ev = Event()
     loop = get_event_loop()
-    ready = Ready.R
+    ready: Ready
 
     def wakeup(state: Ready) -> None:
         nonlocal ready