Skip to content

napoleon: support "Keyword-only arguments" section #6171

Closed as not planned
Closed as not planned
@mivade

Description

@mivade

It's generally useful to explicitly call out keyword-only arguments in Python 3. Currently when using the numpydoc format, I might have a docstring containing something like

def foo(*, what):
    """Do something then do something else.

    Keyword-only arguments
    -------------------------
    what: str
        What else to do.

    """

Instead of titling the section as expected, it ends up looking something like:

  • arguments (Keyword-only) –
  • ---------------------- –
  • what - what else to do

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions