Skip to content

Commit 110772a

Browse files
authored
Merge pull request #26 from adambullmer/ignore-first-param
Stop checking `self` and `cls` params if not the first parameter
2 parents f80392c + be17e5a commit 110772a

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)