Skip to content

ndarray.copy docstring missing Returns section #12540

@lxop

Description

@lxop

As the title says. This interferes with tools that infer types from the docstring, e.g. PyCharm.

Just requires the addition of

    Returns
    -------
    arr : ndarray
        Copy of the array `a`.
    

Reproducing code example:

import numpy as np
help(np.ndarray.copy)

Numpy/Python version information:

1.15.2 3.7.0 (default, Sep 12 2018, 18:30:08) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions