(
data: Any, **kwargs: dict[str, Any]
)
| 148 | |
| 149 | |
| 150 | async def async_to_duck_array( |
| 151 | data: Any, **kwargs: dict[str, Any] |
| 152 | ) -> duckarray[_ShapeType, _DType]: |
| 153 | from xarray.core.indexing import ( |
| 154 | ExplicitlyIndexed, |
| 155 | ImplicitToExplicitIndexingAdapter, |
| 156 | ) |
| 157 | |
| 158 | if isinstance(data, ExplicitlyIndexed | ImplicitToExplicitIndexingAdapter): |
| 159 | return await data.async_get_duck_array() # type: ignore[union-attr, no-any-return] |
| 160 | else: |
| 161 | return to_duck_array(data, **kwargs) |
no test coverage detected
searching dependent graphs…