There was an error while loading. Please reload this page.
1 parent e983bd0 commit d7765c6Copy full SHA for d7765c6
elasticsearch/compat.py
@@ -106,7 +106,9 @@ def run() -> None:
106
107
108
@asynccontextmanager
109
-async def safe_task(coro: Coroutine[Any, Any, Any]) -> AsyncIterator[asyncio.Task[Any]]:
+async def safe_task(
110
+ coro: Coroutine[Any, Any, Any],
111
+) -> "AsyncIterator[asyncio.Task[Any]]":
112
"""Run a background task within a context manager block.
113
114
The task is awaited when the block ends.
0 commit comments