diff options
Diffstat (limited to 'tests/functional/a/arguments_differ_py3.py')
| -rw-r--r-- | tests/functional/a/arguments_differ_py3.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/functional/a/arguments_differ_py3.py b/tests/functional/a/arguments_differ_py3.py new file mode 100644 index 000000000..0e07131cc --- /dev/null +++ b/tests/functional/a/arguments_differ_py3.py @@ -0,0 +1,36 @@ +# pylint: disable=missing-docstring,too-few-public-methods +class AbstractFoo: + + def kwonly_1(self, first, *, second, third): + "Normal positional with two positional only params." + + def kwonly_2(self, *, first, second): + "Two positional only parameter." + + def kwonly_3(self, *, first, second): + "Two positional only params." + + def kwonly_4(self, *, first, second=None): + "One positional only and another with a default." + + def kwonly_5(self, *, first, **kwargs): + "Keyword only and keyword variadics." + + +class Foo(AbstractFoo): + + def kwonly_1(self, first, *, second): # [arguments-differ] + "One positional and only one positional only param." + + def kwonly_2(self, first): # [arguments-differ] + "Only one positional parameter instead of two positional only parameters." + + def kwonly_3(self, first, second): # [arguments-differ] + "Two positional params." + + def kwonly_4(self, first, second): # [arguments-differ] + "Two positional params." + + def kwonly_5(self, *, first): # [arguments-differ] + "Keyword only, but no variadics." +
\ No newline at end of file |
