MCPcopy Create free account
hub / github.com/pydata/xarray / _create_doc

Method _create_doc

xarray/ufuncs.py:55–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 raise NotImplementedError
54
55 def _create_doc(self):
56 doc = getattr(np, self.__name__).__doc__
57 doc = _remove_unused_reference_labels(
58 _skip_signature(_dedent(doc), self.__name__)
59 )
60 self.__doc__ = (
61 f"xarray specific variant of :py:func:`numpy.{self.__name__}`. "
62 "Handles xarray objects by dispatching to the appropriate "
63 "function for the underlying array type.\n\n"
64 f"Documentation from numpy:\n\n{doc}"
65 )
66
67
68class _unary_ufunc(_ufunc_wrapper):

Callers 1

__init__Method · 0.95

Calls 3

_skip_signatureFunction · 0.85
_dedentFunction · 0.85

Tested by

no test coverage detected