summaryrefslogtreecommitdiff
path: root/tests/functional/a/abstract/abstract_abc_methods.py
blob: d63389c505665c6be8263b04aea77e050881517b (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, useless-object-inheritance

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)