aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/n/no/no_self_argument_py37.py
blob: 8e6d6fc34e12550d4a75bd30a5f8b22ab3432b68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Test detection of self as argument of first method in Python 3.7 and above."""

# pylint: disable=missing-docstring,too-few-public-methods,useless-object-inheritance


class Toto(object):

    def __class_getitem__(cls, params):
        # This is actually a special method which is always a class method.
        # See https://www.python.org/dev/peps/pep-0560/#class-getitem
        pass

    def __class_other__(cls, params):  # [no-self-argument]
        # This is not a special case and as such is an instance method.
        pass