Skip to content

Commit 9eff23b

Browse files
Apply feedback
1 parent 3854ac1 commit 9eff23b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/asyncio/coroutines.pyi

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from collections.abc import Coroutine
3-
from typing import Any, AwaitableGenerator
4-
from typing_extensions import TypeGuard
3+
from typing import Any
4+
from typing_extensions import Annotated, TypeGuard
55

66
if sys.version_info >= (3, 11):
77
__all__ = ("iscoroutinefunction", "iscoroutine")
@@ -23,4 +23,4 @@ if sys.version_info >= (3, 8):
2323
def iscoroutine(obj: object) -> TypeGuard[Coroutine[Any, Any, Any]]: ...
2424

2525
else:
26-
def iscoroutine(obj: object) -> TypeGuard[AwaitableGenerator[Any, Any, Any, Any] | Coroutine[Any, Any, Any]]: ...
26+
def iscoroutine(obj: object) -> Annotated[TypeGuard[Coroutine[Any, Any, Any]], "can actually be a generator-style coroutine"]: ...

0 commit comments

Comments
 (0)