(self)
| 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 | |
| 68 | class _unary_ufunc(_ufunc_wrapper): |
no test coverage detected