@@ -160,7 +160,7 @@ def open(
160160 storage_options : dict [str , Any ] | None = None ,
161161 ** kwargs : Any , # TODO: type kwargs as valid args to async_api.open
162162) -> Array | Group :
163- """Convenience function to open a group or array using file-mode-like semantics.
163+ """Open a group or array using file-mode-like semantics.
164164
165165 Parameters
166166 ----------
@@ -221,7 +221,7 @@ def save(
221221 path : str | None = None ,
222222 ** kwargs : Any , # TODO: type kwargs as valid args to async_api.save
223223) -> None :
224- """Convenience function to save an array or group of arrays to the local file system.
224+ """Save an array or group of arrays to the local file system.
225225
226226 Parameters
227227 ----------
@@ -254,8 +254,9 @@ def save_array(
254254 storage_options : dict [str , Any ] | None = None ,
255255 ** kwargs : Any , # TODO: type kwargs as valid args to async_api.save_array
256256) -> None :
257- """Convenience function to save a NumPy array to the local file system, following a
258- similar API to the NumPy save() function.
257+ """Save a NumPy array to the local file system.
258+
259+ Follows a similar API to the NumPy save() function.
259260
260261 Parameters
261262 ----------
@@ -295,8 +296,9 @@ def save_group(
295296 storage_options : dict [str , Any ] | None = None ,
296297 ** kwargs : NDArrayLike ,
297298) -> None :
298- """Convenience function to save several NumPy arrays to the local file system, following a
299- similar API to the NumPy savez()/savez_compressed() functions.
299+ """Save several NumPy arrays to the local file system.
300+
301+ Follows a similar API to the NumPy savez()/savez_compressed() functions.
300302
301303 Parameters
302304 ----------
@@ -920,7 +922,7 @@ def empty(shape: ChunkCoords, **kwargs: Any) -> Array:
920922# TODO: move ArrayLike to common module
921923# TODO: add type annotations for kwargs
922924def empty_like (a : ArrayLike , ** kwargs : Any ) -> Array :
923- """Create an empty array like `a` .
925+ """Create an empty array like another array .
924926
925927 Parameters
926928 ----------
@@ -939,8 +941,7 @@ def empty_like(a: ArrayLike, **kwargs: Any) -> Array:
939941
940942# TODO: add type annotations for kwargs and fill_value
941943def full (shape : ChunkCoords , fill_value : Any , ** kwargs : Any ) -> Array :
942- """Create an array, with `fill_value` being used as the default value for
943- uninitialized portions of the array.
944+ """Create an array with a default fill value.
944945
945946 Parameters
946947 ----------
@@ -962,7 +963,7 @@ def full(shape: ChunkCoords, fill_value: Any, **kwargs: Any) -> Array:
962963# TODO: move ArrayLike to common module
963964# TODO: add type annotations for kwargs
964965def full_like (a : ArrayLike , ** kwargs : Any ) -> Array :
965- """Create a filled array like `a` .
966+ """Create a filled array like another array .
966967
967968 Parameters
968969 ----------
@@ -981,8 +982,7 @@ def full_like(a: ArrayLike, **kwargs: Any) -> Array:
981982
982983# TODO: add type annotations for kwargs
983984def ones (shape : ChunkCoords , ** kwargs : Any ) -> Array :
984- """Create an array, with one being used as the default value for
985- uninitialized portions of the array.
985+ """Create an array with a fill value of one.
986986
987987 Parameters
988988 ----------
@@ -1001,7 +1001,7 @@ def ones(shape: ChunkCoords, **kwargs: Any) -> Array:
10011001
10021002# TODO: add type annotations for kwargs
10031003def ones_like (a : ArrayLike , ** kwargs : Any ) -> Array :
1004- """Create an array of ones like `a` .
1004+ """Create an array of ones like another array .
10051005
10061006 Parameters
10071007 ----------
@@ -1063,7 +1063,7 @@ def open_array(
10631063
10641064# TODO: add type annotations for kwargs
10651065def open_like (a : ArrayLike , path : str , ** kwargs : Any ) -> Array :
1066- """Open a persistent array like `a` .
1066+ """Open a persistent array like another array .
10671067
10681068 Parameters
10691069 ----------
@@ -1084,8 +1084,7 @@ def open_like(a: ArrayLike, path: str, **kwargs: Any) -> Array:
10841084
10851085# TODO: add type annotations for kwargs
10861086def zeros (shape : ChunkCoords , ** kwargs : Any ) -> Array :
1087- """Create an array, with zero being used as the default value for
1088- uninitialized portions of the array.
1087+ """Create an array with a fill value of zero.
10891088
10901089 Parameters
10911090 ----------
@@ -1104,7 +1103,7 @@ def zeros(shape: ChunkCoords, **kwargs: Any) -> Array:
11041103
11051104# TODO: add type annotations for kwargs
11061105def zeros_like (a : ArrayLike , ** kwargs : Any ) -> Array :
1107- """Create an array of zeros like `a` .
1106+ """Create an array of zeros like another array .
11081107
11091108 Parameters
11101109 ----------
0 commit comments