numpydoc icon indicating copy to clipboard operation
numpydoc copied to clipboard

Dedent section starting with `.. deprecation::`

Open stefanv opened this issue 1 year ago • 0 comments

Closes https://github.com/numpy/numpydoc/issues/573

There may be a more elegant way to fix this. Problem is that section that starts with deprecation warning comes back indented, and therefore fails to meet the test doc.extended_summary.startswith(".. deprecated:: ").

Reproducer:

foo.py:

def my_func_right():
    """Compute my function.

    .. deprecated:: v0.1
        This function is listed for future removal.

    What it does in more detail.
    """
    pass
$ numpydoc lint foo.py

stefanv avatar Jul 17 '24 18:07 stefanv