False Positive W0143-comparison-with-callable when using derived property descriptors #9722
Labels
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
Pylint reports a W0143 warning when comparing an attribute that is a descriptor to a constant, but only when the descriptor class has more than one level of class ancestry. As the example shows, it doesn't matter what those descriptors do -- just deriving two levels of child classes from the builtin property class without adding or modifying the functionality triggers the bug.
Configuration
No response
Command used
Pylint output
Expected behavior
I expect pylint to recognize a descriptor, even when that descriptor may have multiple ancestors
Pylint version
OS / Environment
macOS Sonoma
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: