@@ -171,8 +171,8 @@ def normalize_chunks(
171
171
172
172
173
173
def normalize_dtype (
174
- dtype : Union [str , np .dtype [ Any ] ], object_codec : Any
175
- ) -> Tuple [np .dtype [ Any ] , Any ]:
174
+ dtype : Union [str , np .dtype ], object_codec : Any
175
+ ) -> Tuple [np .dtype , Any ]:
176
176
177
177
# convenience API for object arrays
178
178
if inspect .isclass (dtype ):
@@ -212,8 +212,9 @@ def normalize_dtype(
212
212
213
213
214
214
# noinspection PyTypeChecker
215
+ # TODO: correctly type ellipsis
215
216
def is_total_slice (
216
- item : Union ["builtins.Ellipsis" , slice , Tuple [Any , ...]], shape : Tuple [int ]
217
+ item : Union [slice , Tuple [Any , ...]], shape : Tuple [int ]
217
218
) -> bool :
218
219
"""Determine whether `item` specifies a complete slice of array with the
219
220
given `shape`. Used to optimize __setitem__ operations on the Chunk
@@ -293,7 +294,7 @@ def normalize_dimension_separator(sep: Optional[str]) -> Optional[str]:
293
294
)
294
295
295
296
296
- def normalize_fill_value (fill_value : Any , dtype : np .dtype [ Any ] ):
297
+ def normalize_fill_value (fill_value : Any , dtype : np .dtype ):
297
298
298
299
if fill_value is None or dtype .hasobject :
299
300
# no fill value
0 commit comments