Skip to content

Questions about several "issues" I found with the docstring parser. #258

Closed Answered by pawamoy
Masara asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, thanks a lot for this detailed report!

  1. For parameter docstrings (in classes and functions) grouped parameters can be parsed correctly, but not for attributes. Is this intended?

    The Numpydoc style guide is unclear and doesn't explicitly tell attributes can be grouped.

  2. p (int): foo. Defaults to 1.
    :param p: foo defaults to 1

    This is arbitrary text and cannot be parsed indeed. It could be written in something else than english, or use different punctuation, spacing, or describe complex values such as some value if something else another value which cannot be translated to Python code.

  3. var, cvar, ivar

    Simply not implemented. Someone else contributed the Sphinx parser. PRs wel…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Masara
Comment options

Answer selected by Masara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants