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
I thought we already supported this, but the code path I was thinking of is specifically for inheriting docstrings for overridden methods (which is working). See getFunctionDocStringInherited.. I guess that was the result of #877 which you referenced above.
classA:
""" My docstring. """defmethod(self):
""" My method docstring. """passclassB(A):
defmethod(self):
passa=A()
b=B()
a.method()
b.method()
Hey! I've got a request similar to #877 but related to class docstrings instead.
See the code below:
Here is what Pylance shows on hover for each class:
It would be great if B inherited A's docstring in the absence of its own. Especially as this is the behaviour of
inspect.getdoc
:The text was updated successfully, but these errors were encountered: