We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ffce28 commit 16b6605Copy full SHA for 16b6605
1 file changed
parsers/parser.py
@@ -563,7 +563,7 @@ def parse_arguments(self, line):
563
arguments = re.search(r'^\s*def \w*\((.*)\)', line)
564
565
# Parse type hints
566
- hints = dict(re.findall(r'(\w*)\s*:\s*(\w*\[[^:]*\]|\w*)\s*', arguments.group(1)))
+ hints = dict(re.findall(r'(\w*)\s*:\s*(\w+\[[^:]*\]|\w+)\s*', arguments.group(1)))
567
568
# Remove type hints
569
arguments = re.sub(r':\s*(\w*\[[^:]*\]|\w*)\s*', "", arguments.group(1))
0 commit comments