summaryrefslogtreecommitdiff
path: root/pylint/test/functional/method_hidden.py
blob: e0588aff5288fa54b99c9cc28b64199b04b51bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# pylint: disable=too-few-public-methods,print-statement
"""check method hidding ancestor attribute
"""
from __future__ import print_function

class Abcd(object):
    """dummy"""
    def __init__(self):
        self.abcd = 1

class Cdef(Abcd):
    """dummy"""
    def abcd(self): # [method-hidden]
        """test
        """
        print(self)