11# pylint: disable=missing-function-docstring, missing-module-docstring
22class RegularMethods :
3- """The max positional arguments default is 5. Regular methods doesn 't count `self`."""
3+ """The max positional arguments default is 5. Regular methods don 't count `self`."""
44 # +1: [too-many-arguments, too-many-positional-arguments]
55 def regular_fail1 (self , a , b , c , d , e , f ):
66 pass
@@ -12,3 +12,43 @@ def regular_okay1(self, a, b, c, d, e, *, f=True):
1212 pass
1313 def regular_okay2 (self , a , b , c , d , e ):
1414 pass
15+
16+
17+ # pylint: disable=missing-function-docstring, missing-module-docstring
18+ class StaticMethods :
19+ """The max positional arguments default is 5. Static methods count them all."""
20+ @staticmethod
21+ # +1: [too-many-arguments, too-many-positional-arguments]
22+ def static_fail1 (a , b , c , d , e , f ):
23+ pass
24+ @staticmethod
25+ # +1: [too-many-arguments, too-many-positional-arguments]
26+ def static_fail2 (a , b , c , d , e , / , f ):
27+ pass
28+ @staticmethod
29+ # +1: [too-many-arguments]
30+ def static_okay1 (a , b , c , d , e , * , f = True ):
31+ pass
32+ @staticmethod
33+ def static_okay2 (a , b , c , d , e ):
34+ pass
35+
36+
37+ # pylint: disable=missing-function-docstring, missing-module-docstring
38+ class ClassMethods :
39+ """The max positional arguments default is 5. Class methods don't count `cls`."""
40+ @classmethod
41+ # +1: [too-many-arguments, too-many-positional-arguments]
42+ def class_fail1 (cls , a , b , c , d , e , f ):
43+ pass
44+ @classmethod
45+ # +1: [too-many-arguments, too-many-positional-arguments]
46+ def class_fail2 (cls , a , b , c , d , e , / , f ):
47+ pass
48+ @classmethod
49+ # +1: [too-many-arguments]
50+ def class_okay1 (cls , a , b , c , d , e , * , f = True ):
51+ pass
52+ @classmethod
53+ def class_okay2 (cls , a , b , c , d , e ):
54+ pass
0 commit comments