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

This commit is contained in:
Akuli authored and GitHub committed 2021-11-28 08:04:46 -08:00
1 parent 6d54c10387
commit 2b702233c6
4 files changed
+25 -14

No files matched your search

+3 -3
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]]: ...