@@ -145,7 +145,7 @@ def open(
145145 storage_options : dict [str , Any ] | None = None ,
146146 ** kwargs : Any , # TODO: type kwargs as valid args to async_api.open
147147) -> Array | Group :
148- """Convenience function to open a group or array using file-mode-like semantics.
148+ """Open a group or array using file-mode-like semantics.
149149
150150 Parameters
151151 ----------
@@ -206,7 +206,7 @@ def save(
206206 path : str | None = None ,
207207 ** kwargs : Any , # TODO: type kwargs as valid args to async_api.save
208208) -> None :
209- """Convenience function to save an array or group of arrays to the local file system.
209+ """Save an array or group of arrays to the local file system.
210210
211211 Parameters
212212 ----------
@@ -239,8 +239,9 @@ def save_array(
239239 storage_options : dict [str , Any ] | None = None ,
240240 ** kwargs : Any , # TODO: type kwargs as valid args to async_api.save_array
241241) -> None :
242- """Convenience function to save a NumPy array to the local file system, following a
243- similar API to the NumPy save() function.
242+ """Save a NumPy array to the local file system.
243+
244+ Follows a similar API to the NumPy save() function.
244245
245246 Parameters
246247 ----------
@@ -280,8 +281,9 @@ def save_group(
280281 storage_options : dict [str , Any ] | None = None ,
281282 ** kwargs : NDArrayLike ,
282283) -> None :
283- """Convenience function to save several NumPy arrays to the local file system, following a
284- similar API to the NumPy savez()/savez_compressed() functions.
284+ """Save several NumPy arrays to the local file system.
285+
286+ Follows a similar API to the NumPy savez()/savez_compressed() functions.
285287
286288 Parameters
287289 ----------
@@ -703,7 +705,7 @@ def empty(shape: ChunkCoords, **kwargs: Any) -> Array:
703705# TODO: move ArrayLike to common module
704706# TODO: add type annotations for kwargs
705707def empty_like (a : ArrayLike , ** kwargs : Any ) -> Array :
706- """Create an empty array like `a` .
708+ """Create an empty array like another array .
707709
708710 Parameters
709711 ----------
@@ -722,8 +724,7 @@ def empty_like(a: ArrayLike, **kwargs: Any) -> Array:
722724
723725# TODO: add type annotations for kwargs and fill_value
724726def full (shape : ChunkCoords , fill_value : Any , ** kwargs : Any ) -> Array :
725- """Create an array, with `fill_value` being used as the default value for
726- uninitialized portions of the array.
727+ """Create an array with a default fill value.
727728
728729 Parameters
729730 ----------
@@ -745,7 +746,7 @@ def full(shape: ChunkCoords, fill_value: Any, **kwargs: Any) -> Array:
745746# TODO: move ArrayLike to common module
746747# TODO: add type annotations for kwargs
747748def full_like (a : ArrayLike , ** kwargs : Any ) -> Array :
748- """Create a filled array like `a` .
749+ """Create a filled array like another array .
749750
750751 Parameters
751752 ----------
@@ -764,8 +765,7 @@ def full_like(a: ArrayLike, **kwargs: Any) -> Array:
764765
765766# TODO: add type annotations for kwargs
766767def ones (shape : ChunkCoords , ** kwargs : Any ) -> Array :
767- """Create an array, with one being used as the default value for
768- uninitialized portions of the array.
768+ """Create an array with a fill value of one.
769769
770770 Parameters
771771 ----------
@@ -784,7 +784,7 @@ def ones(shape: ChunkCoords, **kwargs: Any) -> Array:
784784
785785# TODO: add type annotations for kwargs
786786def ones_like (a : ArrayLike , ** kwargs : Any ) -> Array :
787- """Create an array of ones like `a` .
787+ """Create an array of ones like another array .
788788
789789 Parameters
790790 ----------
@@ -846,7 +846,7 @@ def open_array(
846846
847847# TODO: add type annotations for kwargs
848848def open_like (a : ArrayLike , path : str , ** kwargs : Any ) -> Array :
849- """Open a persistent array like `a` .
849+ """Open a persistent array like another array .
850850
851851 Parameters
852852 ----------
@@ -867,8 +867,7 @@ def open_like(a: ArrayLike, path: str, **kwargs: Any) -> Array:
867867
868868# TODO: add type annotations for kwargs
869869def zeros (shape : ChunkCoords , ** kwargs : Any ) -> Array :
870- """Create an array, with zero being used as the default value for
871- uninitialized portions of the array.
870+ """Create an array with a fill value of zero.
872871
873872 Parameters
874873 ----------
@@ -887,7 +886,7 @@ def zeros(shape: ChunkCoords, **kwargs: Any) -> Array:
887886
888887# TODO: add type annotations for kwargs
889888def zeros_like (a : ArrayLike , ** kwargs : Any ) -> Array :
890- """Create an array of zeros like `a` .
889+ """Create an array of zeros like another array .
891890
892891 Parameters
893892 ----------
0 commit comments