mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
add TypeGuard to coroutines.iscoroutine (#6105)
make CoroutineType extend Coroutine
This commit is contained in:
@@ -62,7 +62,7 @@ else:
|
||||
def iscoroutinefunction(object: object) -> bool: ...
|
||||
|
||||
def isgenerator(object: object) -> TypeGuard[GeneratorType[Any, Any, Any]]: ...
|
||||
def iscoroutine(object: object) -> TypeGuard[CoroutineType]: ...
|
||||
def iscoroutine(object: object) -> TypeGuard[CoroutineType[Any, Any, Any]]: ...
|
||||
def isawaitable(object: object) -> TypeGuard[Awaitable[Any]]: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
|
||||
Reference in New Issue
Block a user