Allow explicit conversions to numpy in `to_numpy`, but disallow np.asarray etc.
(self)
| 62 | return type(self)(self.array[key]) |
| 63 | |
| 64 | def to_numpy(self) -> np.ndarray: |
| 65 | """Allow explicit conversions to numpy in `to_numpy`, but disallow np.asarray etc.""" |
| 66 | return self.array |
| 67 | |
| 68 | def __array__( |
| 69 | self, dtype: np.typing.DTypeLike | None = None, /, *, copy: bool | None = None |
no outgoing calls