|
1 | 1 | # pylint: disable=missing-function-docstring, missing-module-docstring |
2 | | -class SixArgumentMethods: |
3 | | - """The max positional arguments default is 5, so 6 for a method because of self.""" |
4 | | - def fail1(self, a, b, c, d, e, f): # [too-many-arguments, too-many-positional-arguments] |
| 2 | +class RegularMethods: |
| 3 | + """The max positional arguments default is 5. Regular methods doesn't count `self`.""" |
| 4 | + # +1: [too-many-arguments, too-many-positional-arguments] |
| 5 | + def regular_fail1(self, a, b, c, d, e, f): |
5 | 6 | pass |
6 | | - def fail2(self, a, b, c, d, e, /, f): # [too-many-arguments, too-many-positional-arguments] |
| 7 | + # +1: [too-many-arguments, too-many-positional-arguments] |
| 8 | + def regular_fail2(self, a, b, c, d, e, /, f): |
7 | 9 | pass |
8 | | - def okay1(self, a, b, c, d, e, *, f=True): # [too-many-arguments] |
| 10 | + # +1: [too-many-arguments] |
| 11 | + def regular_okay1(self, a, b, c, d, e, *, f=True): |
| 12 | + pass |
| 13 | + def regular_okay2(self, a, b, c, d, e): |
9 | 14 | pass |
0 commit comments