Open swathipil opened 2 months ago
Additionally, since args is included in the APIView, another after that is not needed. It is implied that the arguments following * are kwargs. Expected APIView:
def __init__(
self,
message: str,
*args: Any,
error = ...
**kwargs: Any
) -> None:
@tjprescott, we believe this is in the Python parser. If you find that's not true, go ahead and reassign to @chidozieononiwu
@swathipil yes, APIView does very purposefully pull param and type info from docstrings because it does not render the docstrings. This is certainly a parser bug.
I'm not sure why only error and messages are appearing, but are you intending to use a mix of keyword and ivar?
Hi @tjprescott - Sorry for the late response! Didn't see this until just now. Yes, we're using both keywords and ivars. For example, the keyword message
will also be an ivar.
The [APIView] for the following method seems to be mixing docstring and annotations in the signature:
APIView:
I would expect that the APIView method signature looks entirely like the method signature and not the docstring. Should I update this method/docstring in some way or is this is an APIView bug? Thanks!