blob: 8f573613cdbd2f4d15f67b8acd932282f642251a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# pylint: disable=missing-docstring,no-self-argument
class Cls:
def __init__(self, obj, /):
self.obj = obj
# regression tests for no-method-argument getting reported
# instead of no-self-argument
def varargs(*args):
"""A method without a self argument but with *args."""
def kwargs(**kwargs):
"""A method without a self argument but with **kwargs."""
def varargs_and_kwargs(*args, **kwargs):
"""A method without a self argument but with *args and **kwargs."""
|