@@ -337,9 +337,9 @@ def compute(self, item: slice | list[slice] | None = None, **kwargs: Any) -> blo
337
337
pass
338
338
339
339
@abstractmethod
340
- def __getitem__ (self , item : int | slice | Sequence [slice ]) -> blosc2 . Array :
340
+ def __getitem__ (self , item : int | slice | Sequence [slice ]) -> np . ndarray :
341
341
"""
342
- Return a NumPy .ndarray containing the evaluation of the :ref:`LazyArray`.
342
+ Return a numpy .ndarray containing the evaluation of the :ref:`LazyArray`.
343
343
344
344
Parameters
345
345
----------
@@ -1152,7 +1152,7 @@ def fast_eval( # noqa: C901
1152
1152
operands : dict ,
1153
1153
getitem : bool ,
1154
1154
** kwargs ,
1155
- ) -> blosc2 .Array :
1155
+ ) -> blosc2 .NDArray | np . ndarray :
1156
1156
"""Evaluate the expression in chunks of operands using a fast path.
1157
1157
1158
1158
Parameters
@@ -1319,7 +1319,7 @@ def slices_eval( # noqa: C901
1319
1319
getitem : bool ,
1320
1320
_slice = NDINDEX_EMPTY_TUPLE ,
1321
1321
** kwargs ,
1322
- ) -> blosc2 .Array :
1322
+ ) -> blosc2 .NDArray | np . ndarray :
1323
1323
"""Evaluate the expression in chunks of operands.
1324
1324
1325
1325
This function can handle operands with different chunk shapes and
@@ -1722,7 +1722,7 @@ def reduce_slices( # noqa: C901
1722
1722
reduce_args ,
1723
1723
_slice = NDINDEX_EMPTY_TUPLE ,
1724
1724
** kwargs ,
1725
- ) -> blosc2 .Array :
1725
+ ) -> blosc2 .NDArray | np . ndarray :
1726
1726
"""Evaluate the expression in chunks of operands.
1727
1727
1728
1728
This function can handle operands with different chunk shapes.
@@ -2967,7 +2967,7 @@ def sort(self, order: str | list[str] | None = None) -> blosc2.LazyArray:
2967
2967
lazy_expr ._order = order
2968
2968
return lazy_expr
2969
2969
2970
- def compute (self , item = (), ** kwargs ) -> blosc2 .Array :
2970
+ def compute (self , item = (), ** kwargs ) -> blosc2 .NDArray :
2971
2971
# When NumPy ufuncs are called, the user may add an `out` parameter to kwargs
2972
2972
if "out" in kwargs :
2973
2973
kwargs ["_output" ] = kwargs .pop ("out" )
@@ -3250,7 +3250,7 @@ def info(self):
3250
3250
def info_items (self ):
3251
3251
inputs = {}
3252
3252
for key , value in self .inputs_dict .items ():
3253
- if isinstance (value , blosc2 .Array | blosc2 . C2Array ):
3253
+ if isinstance (value , blosc2 .Array ):
3254
3254
inputs [key ] = f"<{ value .__class__ .__name__ } > { value .shape } { value .dtype } "
3255
3255
else :
3256
3256
inputs [key ] = str (value )
0 commit comments