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 a6f842c commit 2d59723Copy full SHA for 2d59723
mypy/stubdoc.py
@@ -140,7 +140,7 @@ 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() == '') and not _ARG_NAME_RE.match(self.arg_name):
144
# Invalid argument name.
145
self.reset()
146
return
0 commit comments