comparison-with-callable
false positive then type of variable is a Callable
#3987
Labels
Checkers
Related to a checker
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Small note: You guys are awesome. Thanks a lot for pylint 🤗
Steps to reproduce
Current behavior
Getting:
Expected behavior
I would expect that this error should not be returned since it's obviously an intended comparison with a callable. You want to do something depending on the
callable
type thatop
is. So no need for parentheses as suggested by the example here.pylint --version output
The text was updated successfully, but these errors were encountered: