You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Haha yes, I thought about this one this morning again. Indeed we should simply remove the * or ** from param names before searching them in the signature.
Moving the issue to pytkdocs.
pawamoy
transferred this issue from mkdocstrings/mkdocstrings
Apr 9, 2020
Can I help with something?
The signature_param = self.signature.parameters[name] to signature_param = self.signature.parameters[name.lstrip("*")] fix the bug.
Describe the bug
I get the following error when I document
**kwargs
parameter in my docstring with the two**
.To Reproduce
Information (please complete the following information):
mkdocstrings
version: [0.7.0]Additional context
This seems to come from the inspect module as
inspect.signature(function).parameters
would return:and the
**kwargs
key is not present butkwargs
is.The text was updated successfully, but these errors were encountered: