Skip to content

Commit 49c971d

Browse files
committed
fix group documentation indentation
1 parent a15935c commit 49c971d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/zarr/core/group.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,7 @@ async def open(
421421
zarr_format: Literal[2, 3, None] = 3,
422422
use_consolidated: bool | str | None = None,
423423
) -> AsyncGroup:
424-
"""
425-
Open a new AsyncGroup
424+
"""Open a new AsyncGroup
426425
427426
Parameters
428427
----------
@@ -601,8 +600,8 @@ def from_dict(
601600
)
602601

603602
async def setitem(self, key: str, value: Any) -> None:
604-
"""Fastpath for creating a new array
605-
603+
"""
604+
Fastpath for creating a new array
606605
New arrays will be created with default array settings for the array type.
607606
608607
Parameters
@@ -1100,8 +1099,7 @@ async def nmembers(
11001099
self,
11011100
max_depth: int | None = 0,
11021101
) -> int:
1103-
"""
1104-
Count the number of members in this group.
1102+
"""Count the number of members in this group.
11051103
11061104
Parameters
11071105
----------
@@ -1528,6 +1526,7 @@ def open(
15281526
zarr_format: Literal[2, 3, None] = 3,
15291527
) -> Group:
15301528
"""Open a group from an initialized store.
1529+
15311530
Parameters
15321531
----------
15331532
store : StoreLike
@@ -1545,6 +1544,7 @@ def open(
15451544

15461545
def __getitem__(self, path: str) -> Array | Group:
15471546
"""Obtain a group member.
1547+
15481548
Parameters
15491549
----------
15501550
path : str
@@ -1730,6 +1730,7 @@ def update_attributes(self, new_attributes: dict[str, Any]) -> Group:
17301730

17311731
def nmembers(self, max_depth: int | None = 0) -> int:
17321732
"""Count the number of members in this group.
1733+
17331734
Parameters
17341735
----------
17351736
max_depth : int, default 0
@@ -1883,6 +1884,7 @@ def tree(self, expand: bool = False, level: int | None = None) -> Any:
18831884

18841885
def create_group(self, name: str, **kwargs: Any) -> Group:
18851886
"""Create a sub-group.
1887+
18861888
Parameters
18871889
----------
18881890
name : str
@@ -1953,8 +1955,8 @@ def create_array(
19531955
exists_ok: bool = False,
19541956
data: npt.ArrayLike | None = None,
19551957
) -> Array:
1956-
"""
1957-
Create a zarr array within this AsyncGroup.
1958+
"""Create a zarr array within this AsyncGroup.
1959+
19581960
This method lightly wraps AsyncArray.create.
19591961
19601962
Parameters
@@ -2070,7 +2072,6 @@ def require_dataset(self, name: str, **kwargs: Any) -> Array:
20702072
def require_array(self, name: str, **kwargs: Any) -> Array:
20712073
"""Obtain an array, creating if it doesn't exist.
20722074
2073-
20742075
Other `kwargs` are as per :func:`zarr.Group.create_array`.
20752076
20762077
Parameters
@@ -2290,8 +2291,8 @@ def array(
22902291
exists_ok: bool = False,
22912292
data: npt.ArrayLike | None = None,
22922293
) -> Array:
2293-
"""
2294-
Create a zarr array within this AsyncGroup.
2294+
"""Create a zarr array within this AsyncGroup.
2295+
22952296
This method lightly wraps `AsyncArray.create`.
22962297
22972298
Parameters

0 commit comments

Comments
 (0)