(
key: ExplicitIndexer,
shape: _Shape,
indexing_support: IndexingSupport,
raw_indexing_method: Callable[..., Any],
)
| 1162 | |
| 1163 | |
| 1164 | async def async_explicit_indexing_adapter( |
| 1165 | key: ExplicitIndexer, |
| 1166 | shape: _Shape, |
| 1167 | indexing_support: IndexingSupport, |
| 1168 | raw_indexing_method: Callable[..., Any], |
| 1169 | ) -> Any: |
| 1170 | raw_key, numpy_indices = decompose_indexer(key, shape, indexing_support) |
| 1171 | result = await raw_indexing_method(raw_key.tuple) |
| 1172 | if numpy_indices.tuple: |
| 1173 | # index the loaded duck array |
| 1174 | indexable = as_indexable(result) |
| 1175 | result = apply_indexer(indexable, numpy_indices) |
| 1176 | return result |
| 1177 | |
| 1178 | |
| 1179 | def apply_indexer(indexable, indexer: ExplicitIndexer): |
nothing calls this directly
no test coverage detected
searching dependent graphs…