Skip to content

Commit

Permalink
Clean up typing and docs for indexing (#1961)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
brokkoli71 authored Jun 19, 2024
1 parent ba6b5c0 commit d4c25b2
Show file tree
Hide file tree
Showing 6 changed files with 1,124 additions and 60 deletions.
2 changes: 1 addition & 1 deletion src/zarr/api/asynchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async def tree(*args: Any, **kwargs: Any) -> None:
raise NotImplementedError


async def array(data: NDArrayLike, **kwargs: Any) -> AsyncArray:
async def array(data: npt.ArrayLike, **kwargs: Any) -> AsyncArray:
"""Create an array filled with `data`.
Parameters
Expand Down
Loading

0 comments on commit d4c25b2

Please sign in to comment.