Skip to content

Commit

Permalink
Fix doc build warnings (#1985)
Browse files Browse the repository at this point in the history
* Fix doc build warnings

* Fix mypy error
  • Loading branch information
dstansby authored Jun 24, 2024
1 parent 11a959a commit cb9605e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/zarr/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,9 @@ def __init__(self, selection: CoordinateSelection, shape: ChunkCoords, chunk_gri

# flatten selection
selection_broadcast = tuple(dim_sel.reshape(-1) for dim_sel in selection_broadcast)
chunks_multi_index_broadcast = [
dim_chunks.reshape(-1) for dim_chunks in chunks_multi_index_broadcast
]
chunks_multi_index_broadcast = tuple(
[dim_chunks.reshape(-1) for dim_chunks in chunks_multi_index_broadcast]
)

# ravel chunk indices
chunks_raveled_indices = np.ravel_multi_index(
Expand Down
4 changes: 2 additions & 2 deletions src/zarr/v2/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class Context(TypedDict, total=False):
All keys are optional. Any component reading the context must provide
a default implementation in the case a key cannot be found.
Items
-----
Attributes
----------
meta_array : array-like, optional
An array-like instance to use for determining the preferred output
array type.
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/v2/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ class PartialChunkIterator:
arr_shape : shape of chunk to select data from
Attributes
-----------
----------
arr_shape
selection
Expand Down

0 comments on commit cb9605e

Please sign in to comment.