Skip to content

Commit b670c3b

Browse files
committed
Use correct type checking for Coroutines.
1 parent b3538a0 commit b670c3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • asyncio_tutorial/part_I_asyncio_intro

asyncio_tutorial/part_I_asyncio_intro/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Create task from coroutine which displays a value after a delay."""
22
import asyncio
33
from asyncio import Task
4-
from typing import Callable
4+
from typing import Coroutine
55

66

7-
async def create_task(coroutine: Callable) -> Task:
7+
async def create_task(coroutine: Coroutine) -> Task:
88
"""
99
Create asyncio tasks to be executed.
1010

0 commit comments

Comments
 (0)