Skip to content

Commit c9c1a35

Browse files
fix safe_task type hint for Python 3.8
1 parent e983bd0 commit c9c1a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def run() -> None:
106106

107107

108108
@asynccontextmanager
109-
async def safe_task(coro: Coroutine[Any, Any, Any]) -> AsyncIterator[asyncio.Task[Any]]:
109+
async def safe_task(coro: Coroutine[Any, Any, Any]) -> "AsyncIterator[asyncio.Task[Any]]":
110110
"""Run a background task within a context manager block.
111111
112112
The task is awaited when the block ends.

0 commit comments

Comments
 (0)