Skip to content

Fix doc build warnings #1985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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