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
This is also part of the expected and documented syntax for the google and numpy formats, supported in the sphinx implementation but not here.
The format isn't formalised in a PEP, but it is fairly widely used and should be supported. If a decision is made not to support it I believe that should be formally documented, especially in relation to the google and numpy format support.
Hello @lod and thanks for your interest in pydoctor.
This feature would be great to have I agree! And the fact we do have this kind of docs in our demo makes it embarrassing not to support it. The main issue is that we don’t have the comments/tokens information in the model at the moment, we only work with the abstract syntax tree from the standard library.
I believe this could be implemented as a token aware ast transformer that would create legit Constant nodes (inline docstrings) based on doc comments. This way we don’t have to touch the astbuider code or only to add the preprocessing step.
Sphinx supports doc comments in the form of
#:
.This is also part of the expected and documented syntax for the google and numpy formats, supported in the sphinx implementation but not here.
The format isn't formalised in a PEP, but it is fairly widely used and should be supported. If a decision is made not to support it I believe that should be formally documented, especially in relation to the google and numpy format support.
#:
https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autopropertyThe text was updated successfully, but these errors were encountered: