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

Commit c4d3582

Browse files
KotlinIslandDetachHead
authored andcommitted
fix iscoroutine
1 parent 28a5e6b commit c4d3582

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
@@ -13,8 +13,4 @@ if sys.version_info < (3, 11):
1313

1414
def iscoroutinefunction(func: object) -> bool: ...
1515

16-
if sys.version_info >= (3, 8):
17-
def iscoroutine(obj: object) -> TypeGuard[Coroutine[Any, Any, Any]]: ...
18-
19-
else:
20-
def iscoroutine(obj: object) -> TypeGuard[types.GeneratorType[Any, Any, Any] | Coroutine[Any, Any, Any]]: ...
16+
def iscoroutine(obj: object) -> TypeGuard[types.GeneratorType | Coroutine[Any, Any, Any]]: ...

0 commit comments

Comments
 (0)