Closed
Description
Often the return value of a callback function is ignored. In those cases, I have previously used Callable[[], None]
, but then @srittau told me to use Callable[[], Any]
, and I changed all stubs I had written to typeshed.
It seems like Callable[[], object]
does the same thing as Callable[[], Any]
though, and when used in a .py
file, also prevents accidentally doing something with the return value. Would it be preferable in typeshed?