-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong docstring shown for nn.LayerNorm.__init__ #1753
Comments
@jingw222 Are you using |
Thanks for asking. I'm using the latest pylance.
|
That doc is likely |
I'm going to close this in favor of #1047, which is the same issue (and I've retitled it to better represent the problem). |
This issue has been announced as fixed in the Pylance v2021.9.1 release as you said in the linked issue. But The hover box still shows me what it was before. What gives? |
Later in that issue, we decided that this particular behavior wasn't a necessarily a bug; it's unclear whether or not the parent class's init doc is the more useful one if the class doc also exists. Other editors appear to behave similarly to us, except that we show the init doc when invoking a class (which calls init). The other issue was in fact actually fixed (as it involved a doc from object), but this particular issue is entirely between non-builtin classes. |
What we have:
which only shows a very terse signature. How do we get the full docstrings:
as in Jupyter:
Screen.Recording.2021-09-02.at.12.46.37.AM.mov
The text was updated successfully, but these errors were encountered: