MCPcopy Index your code
hub / github.com/numpy/numpy / get_array_function_like_doc

Function get_array_function_like_doc

numpy/_core/overrides.py:25–28  ·  view source on GitHub ↗
(public_api, docstring_template="")

Source from the content-addressed store, hash-verified

23)
24
25def get_array_function_like_doc(public_api, docstring_template=""):
26 ARRAY_FUNCTIONS.add(public_api)
27 docstring = public_api.__doc__ or docstring_template
28 return docstring.replace("${ARRAY_FUNCTION_LIKE}", array_function_like_doc)
29
30def finalize_array_function_like(public_api):
31 public_api.__doc__ = get_array_function_like_doc(public_api)

Callers 1

Calls 2

replaceMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…