summaryrefslogtreecommitdiff
path: root/pylint/test/functional/bad_staticmethod_argument.py
blob: 0ff5d9b3508cc45e51241369b87e42d8cc3b19f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# pylint: disable=missing-docstring

class Abcd(object):

    def method1(self): # [bad-staticmethod-argument]
        pass

    method1 = staticmethod(method1)

    def method2(cls): # [bad-staticmethod-argument]
        pass

    method2 = staticmethod(method2)

    def __init__(self):
        pass