Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Google style] Parse "Yields" and "Returns" sections together #78

Copy link
Copy link
@jsh9

Description

@jsh9
Issue body actions

Right now, when there are both Yields and Returns sections in the docstring, only the section on the top is parsed.

For example, in this docstring:

"""
Do something

Args:
    arg1 (int):

Yields:
    int: something

Returns:
    int: something else
"""

only the "Yields" section is parsed as DocstringReturns.

And in this docstring:

"""
Do something

Args:
    arg1 (int):

Returns:
    int: something

Yields:
    int: something else
"""

only the "Returns" section is parsed as DocstringReturns.

Is it possible to add a new class DocstringYields and also parse the "Yields" sections when both "Yields" and "Returns" exist in the docstring?

Thank you!

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.