summaryrefslogtreecommitdiff
path: root/pylint/test/functional/no_self_use_py3.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/functional/no_self_use_py3.py')
-rw-r--r--pylint/test/functional/no_self_use_py3.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/pylint/test/functional/no_self_use_py3.py b/pylint/test/functional/no_self_use_py3.py
new file mode 100644
index 0000000..f401508
--- /dev/null
+++ b/pylint/test/functional/no_self_use_py3.py
@@ -0,0 +1,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)