Skip to content

Commit

Permalink
invalid-overridden-method takes abc.abstractproperty in account
Browse files Browse the repository at this point in the history
Close #3150
  • Loading branch information
PCManticore committed Oct 16, 2019
1 parent 273412f commit 237d110
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -25,6 +25,10 @@ Release date: TBA

Close #3147

* `invalid-overridden-method` takes `abc.abstractproperty` in account

Close #3150


What's New in Pylint 2.4.2?
===========================
Expand Down
2 changes: 0 additions & 2 deletions pylint/checkers/utils.py
Expand Up @@ -706,8 +706,6 @@ def decorated_with_property(node: astroid.FunctionDef) -> bool:
if not node.decorators:
return False
for decorator in node.decorators.nodes:
if not isinstance(decorator, astroid.Name):
continue
try:
if _is_property_decorator(decorator):
return True
Expand Down
7 changes: 7 additions & 0 deletions tests/functional/i/invalid_overridden_method.py
Expand Up @@ -51,3 +51,10 @@ def close(self, attr):
@close.deleter
def close(self):
return None


class AbstractProperty:

@abc.abstractproperty
def prop(self):
return

0 comments on commit 237d110

Please sign in to comment.