-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Bug 🪲False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the code
Milestone
Description
Bug description
Given a file a.py:
# pylint: disable=missing-docstring,too-few-public-methods
class Prop:
def __get_prop(self):
pass
def __set_prop(self, value):
pass
def __del_prop(self):
pass
prop = property(__get_prop, __set_prop, __del_prop)(Configuration)
Using the following configuration:
Command used
Result of pylint a.py:
************* Module a
a.py:3:4: W0238: Unused private member `Prop.__get_prop(self)` (unused-private-member)
a.py:6:4: W0238: Unused private member `Prop.__set_prop(self, value)` (unused-private-member)
a.py:9:4: W0238: Unused private member `Prop.__del_prop(self)` (unused-private-member)
-----------------------------------
Your code has been rated at 6.25/10
(Expected behavior)
There should be no errors.
(Version affected)
pylint 2.9.0+ (including today's main).(OS / Environment)
ALTLinux
(Additional dependencies)
No response
Metadata
Metadata
Assignees
Labels
Bug 🪲False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the code