Guest User

Untitled

a guest
Mar 19th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. async def test(*args, **kwargs):
  2. pass
  3.  
  4. def consumer(function_: Optional[Coroutine[Any, Any, Any]]=None):
  5. func = function_
  6.  
  7. consumer(test)
  8.  
  9. Expected type 'Optional[Coroutine]', got '(args: Tuple[Any, ...], kwargs: Dict[str, Any]) -> Coroutine[Any, Any, None]' instead
Add Comment
Please, Sign In to add comment