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.
1 parent 5d263ef commit eeb3f68Copy full SHA for eeb3f68
mypy/stubdoc.py
@@ -140,7 +140,8 @@ def add_token(self, token: tokenize.TokenInfo) -> None:
140
self.state.pop()
141
elif self.state[-1] == STATE_ARGUMENT_LIST:
142
self.arg_name = self.accumulator
143
- if not _ARG_NAME_RE.match(self.arg_name):
+ if not (token.string == ')' and self.accumulator.strip() == '') \
144
+ and not _ARG_NAME_RE.match(self.arg_name):
145
# Invalid argument name.
146
self.reset()
147
return
0 commit comments