Skip to content

Commit be17e5a

Browse files
committed
Stop checking self and cls params if not the first parameter
Fixes #23
1 parent f80392c commit be17e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parsers/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ def parse_arguments(self, line):
563563
excluded_parameters = ['self', 'cls']
564564
arguments = split_by_commas(arguments.group(1))
565565

566-
for argument in arguments:
567-
if argument in excluded_parameters:
566+
for index, argument in enumerate(arguments):
567+
if index == 0 and argument in excluded_parameters:
568568
continue
569569

570570
argument_type = 'keyword_arguments' if '=' in argument else 'arguments'

0 commit comments

Comments
 (0)