Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit dbca1a2

Browse files
committed
fix iscoroutine
1 parent 32871c0 commit dbca1a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

stdlib/asyncio/coroutines.pyi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,4 @@ if sys.version_info < (3, 11):
2020

2121
def iscoroutinefunction(func: object) -> bool: ...
2222

23-
if sys.version_info >= (3, 8):
24-
def iscoroutine(obj: object) -> TypeGuard[Coroutine[Any, Any, Any]]: ...
25-
26-
else:
27-
def iscoroutine(obj: object) -> TypeGuard[types.GeneratorType[Any, Any, Any] | Coroutine[Any, Any, Any]]: ...
23+
def iscoroutine(obj: object) -> TypeGuard[types.GeneratorType | Coroutine[Any, Any, Any]]: ...

0 commit comments

Comments
 (0)