mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
tests/check_new_syntax.py: check order of if statements (#6423)
This commit is contained in:
@@ -13,8 +13,8 @@ if sys.version_info < (3, 11):
|
||||
|
||||
def iscoroutinefunction(func: object) -> bool: ...
|
||||
|
||||
if sys.version_info < (3, 8):
|
||||
def iscoroutine(obj: object) -> TypeGuard[types.GeneratorType[Any, Any, Any] | Coroutine[Any, Any, Any]]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def iscoroutine(obj: object) -> TypeGuard[Coroutine[Any, Any, Any]]: ...
|
||||
|
||||
else:
|
||||
def iscoroutine(obj: object) -> TypeGuard[Coroutine[Any, Any, Any]]: ...
|
||||
def iscoroutine(obj: object) -> TypeGuard[types.GeneratorType[Any, Any, Any] | Coroutine[Any, Any, Any]]: ...
|
||||
|
||||
Reference in New Issue
Block a user