-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Show __init__ docstring if class has no docstring of itself #388
Comments
Good question... I like the idea. Though I'm not sure if it is a good idea since that is not the way how Python itself works. So we would encourage different behavior than Python's. |
You are referring to I personally would argue that it's better to show desirable information than being compatibel with python internals. On the other hand one could then argue that jedi should try to interpolate senseful docstrings if they are not present, e.g. jedi could try to detect the type of arguments from the usage of that function. |
It's about the
Compatibility with Python is always great, because that's what everyone should strive for. See if you're using However, that is just the way I see this for the current Jedi API. This might still change with a |
There's an issue for this in Jedi. Sorry for not linking to it. I'm too lazy. |
I think you mean this one. |
I recently came accross a class that was not documented in the class docstring but only in the
__init__
docstring. Thusshow documentation
did show the call signature of creating the class but nothing more (where I would have expected some explanation about the argument types).Showing the docstring of
__init__
if the class has no docstring of itself would be less confusing. However I don't know how common this is and if it's worth it for so few edge cases.The text was updated successfully, but these errors were encountered: