You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncdeffoo(x: int): passcallback=foo# What does this type to?
The problem is I don't know what to type callback to. It isn't a Callable as mypy says that "Function does not return a value" when I call await callback(42). It isn't an AsyncIterable, AsyncIterator, or an AsyncGenerator as it simply isn't. It isn't a Coroutine as mypy says that they can't be called.
So am I missing something on how to type this, or does there need to be an AsyncCallable added to typing?
natkam, nevmerzhitsky, lig, izmailoff, naglis and 23 moreravihara