False positive "not-callable" after is not None
#6005
Labels
Control flow
Requires control flow understanding
Duplicate 🐫
Duplicate of an already existing issue
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
Bug description
Minimized reproducer:
See the following line for a real-world example where this false positive is occurring: https://github.com/jab/bidict/blob/caf703e959ed4471bc391a7794411864c1d6ab9d/bidict/_base.py#L185
Configuration
No response
Command used
Pylint output
************* Module repro repro.py:18:21: E1102: weak is not callable (not-callable)
Expected behavior
No error should be flagged here.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: