Files
typeshed/stdlib/asyncio/runners.pyi
Alex Waygood 6672e57e75 Add asyncio.runners.__all__ (#7273)
Nice and simple, this one.
2022-02-18 18:37:09 -08:00

11 lines
265 B
Python

import sys
from typing import Awaitable, TypeVar
__all__ = ("run",)
_T = TypeVar("_T")
if sys.version_info >= (3, 8):
def run(main: Awaitable[_T], *, debug: bool | None = ...) -> _T: ...
else:
def run(main: Awaitable[_T], *, debug: bool = ...) -> _T: ...