Skip to content

Commit be9629d

Browse files
committed
Remove typehints. Fix indentation in one code example.
1 parent 9ff73dc commit be9629d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/howto/a-conceptual-overview-of-asyncio.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,14 +450,14 @@ Note this is also of true of ``asyncio.sleep``.
450450
def __await__(self):
451451
yield
452452

453-
async def _sleep_watcher(future: asyncio.Future, time_to_wake: float):
453+
async def _sleep_watcher(future, time_to_wake):
454454
while True:
455455
if time.time() >= time_to_wake:
456-
# This marks the future as done.
457-
future.set_result(None)
458-
break
456+
# This marks the future as done.
457+
future.set_result(None)
458+
break
459459
else:
460-
await YieldToEventLoop()
460+
await YieldToEventLoop()
461461

462462
Here is the full program's output:
463463

0 commit comments

Comments
 (0)