Skip to content

Commit d4c25b2

Browse files
authored
Clean up typing and docs for indexing (#1961)
* fix typing * add docstring for get_block_selection * add docstring for get_basic_selection and get_coordinate_selection * add note for get_basic_selection with structured dtype * remove common.Selection and replace by indexing.Selection * add docstring for set_block_selection * add docstring for __getitem__ and __setitem__ * add docstring for set_basic_selection * add docstring for set and get_orthogonal_selection * add docstring for set and get_mask_selection * add docstring for set_coordinate_selection * add docstring for oindex and vindex * ruff formatting * setting input interfaces values to npt.ArrayLike * improve typing * improve docstring examples * add docstring for Array.resize * ruff format
1 parent ba6b5c0 commit d4c25b2

File tree

6 files changed

+1124
-60
lines changed

6 files changed

+1124
-60
lines changed

src/zarr/api/asynchronous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ async def tree(*args: Any, **kwargs: Any) -> None:
322322
raise NotImplementedError
323323

324324

325-
async def array(data: NDArrayLike, **kwargs: Any) -> AsyncArray:
325+
async def array(data: npt.ArrayLike, **kwargs: Any) -> AsyncArray:
326326
"""Create an array filled with `data`.
327327
328328
Parameters

0 commit comments

Comments
 (0)