MCPcopy
hub / github.com/pydata/xarray / _skip_signature

Function _skip_signature

xarray/ufuncs.py:86–97  ·  view source on GitHub ↗
(doc, name)

Source from the content-addressed store, hash-verified

84
85
86def _skip_signature(doc, name):
87 if not isinstance(doc, str):
88 return doc
89
90 # numpy creates some functions as aliases and copies the docstring exactly,
91 # so check the actual name to handle this case
92 np_name = getattr(np, name).__name__
93 if doc.startswith(np_name):
94 signature_end = doc.find("\n\n")
95 doc = doc[signature_end + 2 :]
96
97 return doc
98
99
100def _remove_unused_reference_labels(doc):

Callers 1

_create_docMethod · 0.85

Calls 2

startswithMethod · 0.80
findMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…