We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434f652 commit 8ddd510Copy full SHA for 8ddd510
stdlib/asyncio/tasks.pyi
@@ -70,7 +70,10 @@ _T4 = TypeVar("_T4")
70
_T5 = TypeVar("_T5")
71
_T6 = TypeVar("_T6")
72
_FT = TypeVar("_FT", bound=Future[Any])
73
-_FutureLike: TypeAlias = Future[_T] | Generator[Any, None, _T] | Awaitable[_T]
+if sys.version_info >= (3, 12):
74
+ _FutureLike: TypeAlias = Future[_T] | Awaitable[_T]
75
+else:
76
+ _FutureLike: TypeAlias = Future[_T] | Generator[Any, None, _T] | Awaitable[_T]
77
_TaskYieldType: TypeAlias = Future[object] | None
78
79
FIRST_COMPLETED = concurrent.futures.FIRST_COMPLETED
0 commit comments