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

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