| 1747 | |
| 1748 | |
| 1749 | class NdArrayLikeIndexingAdapter(NumpyIndexingAdapter): |
| 1750 | __slots__ = ("array",) |
| 1751 | |
| 1752 | def __init__(self, array): |
| 1753 | if not hasattr(array, "__array_function__"): |
| 1754 | raise TypeError( |
| 1755 | "NdArrayLikeIndexingAdapter must wrap an object that " |
| 1756 | "implements the __array_function__ protocol" |
| 1757 | ) |
| 1758 | self.array = array |
| 1759 | |
| 1760 | |
| 1761 | class ArrayApiIndexingAdapter(IndexingAdapter): |
no outgoing calls
no test coverage detected
searching dependent graphs…