diff options
Diffstat (limited to 'test/input/func_noerror_abstract_method.py')
-rw-r--r-- | test/input/func_noerror_abstract_method.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/input/func_noerror_abstract_method.py b/test/input/func_noerror_abstract_method.py new file mode 100644 index 0000000..18228c6 --- /dev/null +++ b/test/input/func_noerror_abstract_method.py @@ -0,0 +1,20 @@ +""" This should not warn about `prop` being abstract in Child """
+
+# pylint: disable=too-few-public-methods,abstract-class-little-used
+
+__revision__ = None
+
+import abc
+
+class Parent(object):
+ """ Class """
+ __metaclass__ = abc.ABCMeta
+
+ @property
+ @abc.abstractmethod
+ def prop(self):
+ """ Abstract """
+
+class Child(Parent):
+ """ No warning for the following. """
+ prop = property(lambda self: 1)
|