Skip to content

Commit 0f5993e

Browse files
committed
only return Variable objects from vectorized_indexers
1 parent 0a262dd commit 0f5993e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray_array_testing/strategies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def vectorized_indexers(
177177
max_ndim: int = 3,
178178
min_size: int = 1,
179179
max_size: int = 5,
180-
) -> dict[Hashable, xr.DataArray]:
180+
) -> dict[Hashable, xr.Variable]:
181181
"""Generate vectorized (fancy) indexers where all arrays are broadcastable.
182182
183183
In vectorized indexing, all array indexers must have compatible shapes
@@ -206,7 +206,7 @@ def vectorized_indexers(
206206
207207
Returns
208208
-------
209-
sizes : mapping of hashable to DataArray or Variable
209+
sizes : mapping of hashable to Variable
210210
Indexers as a dict with keys randomly selected from sizes.keys().
211211
Values are DataArrays of integer indices that are all broadcastable
212212
to a common shape.

0 commit comments

Comments
 (0)