summaryrefslogtreecommitdiff
path: root/tests/functional/a/abstract/abstract_abc_methods.py
blob: 4d4af2cdbe46dbce8d5108f16f3f50842dcefedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
""" This should not warn about `prop` being abstract in Child """
# pylint: disable=too-few-public-methods

import abc

class Parent:
    """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)