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 27a41e3 commit e8277e1Copy full SHA for e8277e1
mypy/stubdoc.py
@@ -273,7 +273,7 @@ def add_token(self, token: tokenize.TokenInfo) -> None:
273
self.reset()
274
return
275
self.keyword_only = len(self.args)
276
- self.keyword_only_index = self.keyword_only
+ self.keyword_only_index = self.keyword_only + 1 if self.pos_only is not None else 0
277
self.accumulator = ""
278
else:
279
if self.accumulator.startswith("*"):
0 commit comments