Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

abstract_abc_methods.py 447B

1234567891011121314151617
  1. """ This should not warn about `prop` being abstract in Child """
  2. # pylint: disable=too-few-public-methods, no-absolute-import,metaclass-assignment
  3. import abc
  4. class Parent(object):
  5. """Abstract Base Class """
  6. __metaclass__ = abc.ABCMeta
  7. @property
  8. @abc.abstractmethod
  9. def prop(self):
  10. """ Abstract """
  11. class Child(Parent):
  12. """ No warning for the following. """
  13. prop = property(lambda self: 1)