tests/check_new_syntax.py: check order of if statements (#6423)

This commit is contained in:
Akuli
2021-11-28 18:04:46 +02:00
committed by GitHub
parent 6d54c10387
commit 2b702233c6
4 changed files with 25 additions and 14 deletions

View File

@@ -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]]: ...