We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
self
cls
1 parent f80392c commit be17e5aCopy full SHA for be17e5a
parsers/parser.py
@@ -563,8 +563,8 @@ def parse_arguments(self, line):
563
excluded_parameters = ['self', 'cls']
564
arguments = split_by_commas(arguments.group(1))
565
566
- for argument in arguments:
567
- if argument in excluded_parameters:
+ for index, argument in enumerate(arguments):
+ if index == 0 and argument in excluded_parameters:
568
continue
569
570
argument_type = 'keyword_arguments' if '=' in argument else 'arguments'
0 commit comments