Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async def test(*args, **kwargs):
- pass
- def consumer(function_: Optional[Coroutine[Any, Any, Any]]=None):
- func = function_
- consumer(test)
- 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