diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-04-06 22:26:47 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-04-06 22:26:47 +0300 |
commit | 80581e989a94f693fef27561e3fcaada7295b7b6 (patch) | |
tree | 0e935ae6223c293207762725ea709749491f787b /pylint/checkers/classes.py | |
parent | e753a21c82b0b247644d422c99ae0752518a1e4e (diff) | |
download | pylint-80581e989a94f693fef27561e3fcaada7295b7b6.tar.gz |
Don't warn about no-self-use for builtin properties.
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index 2bd7cc1..080abd9 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -550,7 +550,8 @@ a metaclass class method.'} if (self._meth_could_be_func and node.type == 'method' and not node.name in PYMETHODS and not (node.is_abstract() or - overrides_a_method(class_node, node.name)) + overrides_a_method(class_node, node.name) or + decorated_with_property(node)) and class_node.type != 'interface'): self.add_message('no-self-use', node=node) |