MCPcopy Create free account
hub / github.com/numpy/numpy / refer_to_array_attribute

Function refer_to_array_attribute

numpy/core/_add_newdocs.py:6754–6761  ·  view source on GitHub ↗
(attr, method=True)

Source from the content-addressed store, hash-verified

6752# Attributes
6753
6754def refer_to_array_attribute(attr, method=True):
6755 docstring = """
6756 Scalar {} identical to the corresponding array attribute.
6757
6758 Please see `ndarray.{}`.
6759 """
6760
6761 return attr, docstring.format("method" if method else "attribute", attr)
6762
6763
6764add_newdoc('numpy.core.numerictypes', 'generic',

Callers 1

_add_newdocs.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected