Guest User

Untitled

a guest
Jul 2nd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. cat test1.py
  2. async def coro():
  3.     return
  4.  
  5. def aio() -> ():
  6.     return coro()
  7. $ mypy test1.py
  8. test1.py:4: error: Syntax error in type annotation
  9. test1.py:4: note: Suggestion: Use Tuple[T1, ..., Tn] instead of (T1, ..., Tn)
  10. cat test2.py
  11. import typing
  12.  
  13. async def coro():
  14.     return
  15.  
  16. def aio() -> typing.Coroutine:
  17.     return coro()
  18. $ mypy test2.py
  19. $
Advertisement
Add Comment
Please, Sign In to add comment