mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
tests/check_new_syntax.py: check order of if statements (#6423)
This commit is contained in:
1 parent
6d54c10387
commit
2b702233c6
4 files changed
+25
-14
No files matched your search
@@ -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