-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
Adding Script.documentation
.
#392
Comments
I think we would like to make sure the name of the class makes sense for some long time. How about having
I think you could implement it correctly rather than removing the hack. How about subclassing definition class which is only for keywords (e.g., that subclass does not have
|
… to discuss the exact details of that class #392
I changed it to However, I have to come to a conclusion for the These actions don't resolve the discussions about
My plan (far away from starting to implementing it) is to create a |
Implemented |
Emerged from #340:
The return class of
Script.documentation
could look something like this:Of course it's not planned to only have a
raw
and__str__
method available. We could do more. This is an early example.There are a couple of reasons why
Documentation
is necessary:pydoc
keywords and operators, because it conflicted withgoto_definition
. Basically thepydoc
stuff that I disabled in Jedi was what you get withhelp('except')
. This can be really practical, especially for beginners. A keyword is really no definition. It's not "specified" somewhere. So I removed the hacks used to return it inScript.goto_definition
.get_definition
as a separate definition, but I think that's a different discussion (and not such an important one, we could also add a bool param toget_definition
).It is undoubted that those attribute docstrings add relevant documentation to the code and should be available within Jedi.
Except for displaying documentation, we have a good and broad support for the other ones. I think I don't need to explain to you guys how complicated it is to get documentation with Jedi as of now (and how confusing).
The text was updated successfully, but these errors were encountered: