Hi, the type hint for channel.basic.consume() says it must take a function. However, I have passed in a callable (an object with __call__ defined) for a very long time. Type checkers flag this as an error. I mostly use inline typing not docstring typing, but the way to fix it in that case would be to change the type of the argument callback from function to typing.Callable.
Hi, the type hint for
channel.basic.consume()
says it must take a function. However, I have passed in a callable (an object with__call__
defined) for a very long time. Type checkers flag this as an error. I mostly use inline typing not docstring typing, but the way to fix it in that case would be to change the type of the argumentcallback
from function totyping.Callable
.