@@ -1415,8 +1415,13 @@ async def create_hierarchy(
14151415
14161416 Parameters
14171417 ----------
1418- nodes : A dictionary representing the hierarchy to create. The keys should be paths relative to this group
1419- and the values should be the metadata for the arrays or groups to create.
1418+ nodes : dict[str, GroupMetadata | ArrayV3Metadata | ArrayV2Metadata]
1419+ A dictionary defining the hierarchy. The keys are the paths of the nodes in the hierarchy,
1420+ relative to the path of the group. The values are instances of ``GroupMetadata`` or ``ArrayMetadata``. Note that
1421+ all values must have the same ``zarr_format`` as the parent group -- it is an error to mix zarr versions in the
1422+ same hierarchy.
1423+
1424+ Leading "/" characters from keys will be removed.
14201425 overwrite : bool
14211426 Whether to overwrite existing nodes. Defaults to ``False``, in which case an error is
14221427 raised instead of overwriting an existing array or group.
@@ -2107,11 +2112,15 @@ def create_hierarchy(
21072112 Arrays and Groups are yielded in the order they are created. This order is not stable and
21082113 should not be relied on.
21092114
2110-
21112115 Parameters
21122116 ----------
2113- nodes : A dictionary representing the hierarchy to create. The keys should be paths relative to this group
2114- and the values should be the metadata for the arrays or groups to create.
2117+ nodes : dict[str, GroupMetadata | ArrayV3Metadata | ArrayV2Metadata]
2118+ A dictionary defining the hierarchy. The keys are the paths of the nodes in the hierarchy,
2119+ relative to the path of the group. The values are instances of ``GroupMetadata`` or ``ArrayMetadata``. Note that
2120+ all values must have the same ``zarr_format`` as the parent group -- it is an error to mix zarr versions in the
2121+ same hierarchy.
2122+
2123+ Leading "/" characters from keys will be removed.
21152124 overwrite : bool
21162125 Whether to overwrite existing nodes. Defaults to ``False``, in which case an error is
21172126 raised instead of overwriting an existing array or group.
@@ -2906,7 +2915,7 @@ async def create_hierarchy(
29062915 Arrays and Groups are yielded in the order they are created. This order is not stable and
29072916 should not be relied on.
29082917
2909- Parameters
2918+ Parameters
29102919 ----------
29112920 store : Store
29122921 The storage backend to use.
@@ -2916,6 +2925,8 @@ async def create_hierarchy(
29162925 string ``''``. The values are instances of ``GroupMetadata`` or ``ArrayMetadata``. Note that
29172926 all values must have the same ``zarr_format`` -- it is an error to mix zarr versions in the
29182927 same hierarchy.
2928+
2929+ Leading "/" characters from keys will be removed.
29192930 overwrite : bool
29202931 Whether to overwrite existing nodes. Defaults to ``False``, in which case an error is
29212932 raised instead of overwriting an existing array or group.
0 commit comments