diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-07-01 09:19:36 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-07-01 09:31:13 +0200 |
commit | 472f25ee0c727c955061c3c7605bcbe6486b2707 (patch) | |
tree | 9589f7767b8df2cf4c20acc17f7bc7af088a7bc5 /pylint/checkers/classes.py | |
parent | 74dce8afcbccbda7cab9bebb6766f6b0aec43410 (diff) | |
download | pylint-git-472f25ee0c727c955061c3c7605bcbe6486b2707.tar.gz |
[unused-private-member] Handle the case using self to access members
As seen in issue #4644
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index 8f1eeec22..abf77a416 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -949,7 +949,7 @@ a metaclass class method.", if ( isinstance(child, astroid.Attribute) and child.attrname == assign_name.name - and child.expr.name in ("cls", node.name) + and child.expr.name in ("self", "cls", node.name) ): break else: |