diff --git a/autoapi/mappers/python.py b/autoapi/mappers/python.py index 175eaf5..9cab438 100644 --- a/autoapi/mappers/python.py +++ b/autoapi/mappers/python.py @@ -456,7 +456,7 @@ class Parser(object): def parse_functiondef(self, node): if astroid_utils.is_decorated_with_property(node): return self._parse_property(node) - elif astroid_utils.is_decorated_with_property_setter(node): + if astroid_utils.is_decorated_with_property_setter(node): return [] type_ = 'function' if node.type == 'function' else 'method' diff --git a/prospector.yml b/prospector.yml index b639915..9123651 100644 --- a/prospector.yml +++ b/prospector.yml @@ -15,6 +15,8 @@ pylint: max-line-length: 100 disable: - interface-not-implemented + # We still support Python 2 so we have to inherit from object + - useless-object-inheritance mccabe: run: false