Skip to content

Commit cb9605e

Browse files
authored
Fix doc build warnings (#1985)
* Fix doc build warnings * Fix mypy error
1 parent 11a959a commit cb9605e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/zarr/indexing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,9 +1022,9 @@ def __init__(self, selection: CoordinateSelection, shape: ChunkCoords, chunk_gri
10221022

10231023
# flatten selection
10241024
selection_broadcast = tuple(dim_sel.reshape(-1) for dim_sel in selection_broadcast)
1025-
chunks_multi_index_broadcast = [
1026-
dim_chunks.reshape(-1) for dim_chunks in chunks_multi_index_broadcast
1027-
]
1025+
chunks_multi_index_broadcast = tuple(
1026+
[dim_chunks.reshape(-1) for dim_chunks in chunks_multi_index_broadcast]
1027+
)
10281028

10291029
# ravel chunk indices
10301030
chunks_raveled_indices = np.ravel_multi_index(

src/zarr/v2/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class Context(TypedDict, total=False):
99
All keys are optional. Any component reading the context must provide
1010
a default implementation in the case a key cannot be found.
1111
12-
Items
13-
-----
12+
Attributes
13+
----------
1414
meta_array : array-like, optional
1515
An array-like instance to use for determining the preferred output
1616
array type.

src/zarr/v2/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ class PartialChunkIterator:
989989
arr_shape : shape of chunk to select data from
990990
991991
Attributes
992-
-----------
992+
----------
993993
arr_shape
994994
selection
995995

0 commit comments

Comments
 (0)