summaryrefslogtreecommitdiff
path: root/pylint/test/functional/no_self_use_py3.py
blob: f40150835c0b13d33ada263e5263d679aa3c875a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# pylint: disable=missing-docstring,no-init,unused-argument,invalid-name,too-few-public-methods

class A:
    def __init__(self):
        self.store = {}

    def get(self, key, default=None):
        return self.store.get(key, default)

class B(A):
    def get_memo(self, obj):
        return super().get(obj)