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