Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

D417 - Add hanging indent support for Google style #449

Closed
@ColinKennedy

Description

@ColinKennedy

Following the existing conversation seen here (#443)

This issue is to request that hanging indentation documentation be added to Google style.

Args

Currently this style is recommended by pydocstyle:

    Args:
        verbose (bool): If True, print out as much information as possible.
            If False, print out concise "one-liner" information.

And this issue is to request that this other style also be valid:

    Args:
        verbose (bool): 
            If True, print out as much information as possible.
            If False, print out concise "one-liner" information.

@samj1912's link to Google-style, http://google.github.io/styleguide/pyguide.html#383-functions-and-methods, shows that this is already allowed in Google style.

Returns / Yields

The Google style guide explicitly mentions newlines being allowed for args. I'd like to further propose that the same apply for Return docstrings.

For example, this

    Returns
        :obj:`list` of :obj:`tuple` str or :class:`my_package.modules.MyKlass`: Line already exceeds 0 characters.

Can become this

    Returns
        :obj:`list` of :obj:`tuple` str or :class:`my_package.modules.MyKlass`: 
            Each line is within 80 characters.

To the maintainers of this repo - would you accept a PR to add this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions