Skip to content

Commit dacb27a

Browse files
style: pre-commit fixes
1 parent 2803283 commit dacb27a

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/zarr/core/array.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ async def _create_v3(
335335
The default value to use for uninitialized regions of the array. Default is None.
336336
337337
chunk_key_encoding : ChunkKeyEncoding or tuple, optional
338-
The encoding to use for chunk keys. Can be either 'default' or 'v2' along with a separator,
338+
The encoding to use for chunk keys. Can be either 'default' or 'v2' along with a separator,
339339
either "." or "/". Default is None.
340340
341341
codecs : Iterable of Codec or dict of str to JSON, optional
342-
The codecs to apply to each chunk. These can be codec objects or dictionaries specifying codec
342+
The codecs to apply to each chunk. These can be codec objects or dictionaries specifying codec
343343
configurations. Default is None.
344344
345345
dimension_names : Iterable of str or None, optional
@@ -438,11 +438,11 @@ async def _create_v2(
438438
The default value to use for uninitialized regions of the array. Default is None.
439439
440440
order : {'C', 'F'} or None, optional
441-
The memory layout order for the array. 'C' is row-major (C-style), 'F' is column-major
441+
The memory layout order for the array. 'C' is row-major (C-style), 'F' is column-major
442442
(Fortran-style). Default is None.
443443
444444
filters : list of dict of str to JSON or None, optional
445-
Filters to apply to each chunk. These can be dictionaries specifying filter configurations.
445+
Filters to apply to each chunk. These can be dictionaries specifying filter configurations.
446446
Default is None.
447447
448448
compressor : dict of str to JSON or None, optional
@@ -505,7 +505,7 @@ def from_dict(
505505
----------
506506
store_path : StorePath
507507
The path within the store where the array should be created.
508-
508+
509509
data : dict of str to JSON
510510
A dictionary representing the array data and metadata in JSON-serializable format.
511511
Returns
@@ -709,16 +709,16 @@ async def _get_selection(
709709
----------
710710
indexer : Indexer
711711
An object representing the indices to be used for selecting data from the array.
712-
712+
713713
prototype : BufferPrototype
714714
A prototype buffer that defines the structure and properties of the output data.
715-
715+
716716
out : NDBuffer or None, optional
717-
An optional output buffer to write the selected data into. If None, a new buffer
717+
An optional output buffer to write the selected data into. If None, a new buffer
718718
will be created. Default is None.
719-
719+
720720
fields : Fields or None, optional
721-
Specifies which fields to select if the array has structured data. If None, all fields
721+
Specifies which fields to select if the array has structured data. If None, all fields
722722
are selected. Default is None.
723723
724724
Returns
@@ -795,9 +795,9 @@ async def _save_metadata(self, metadata: ArrayMetadata, ensure_parents: bool = F
795795
Parameters
796796
----------
797797
metadata : ArrayMetadata
798-
The metadata to be saved for the array. This typically includes information about the
798+
The metadata to be saved for the array. This typically includes information about the
799799
array's shape, dtype, chunking, etc.
800-
800+
801801
ensure_parents : bool, optional
802802
If True, ensures that any necessary parent directories are created before saving the metadata.
803803
Default is False.
@@ -806,7 +806,7 @@ async def _save_metadata(self, metadata: ArrayMetadata, ensure_parents: bool = F
806806
-------
807807
None
808808
This method does not return any value.
809-
809+
810810
Notes
811811
-----
812812
- This method is asynchronous and should be awaited.
@@ -845,13 +845,13 @@ async def _set_selection(
845845
----------
846846
indexer : Indexer
847847
An object representing the indices to be used for selecting locations in the array where data will be written.
848-
848+
849849
value : numpy.typing.ArrayLike
850850
The values to be written into the array at the selected locations. Must be compatible with the array's dtype and shape.
851-
851+
852852
prototype : BufferPrototype
853853
A prototype buffer that defines the structure and properties of the array chunks being modified.
854-
854+
855855
fields : Fields or None, optional
856856
Specifies which fields to set if the array has structured data. If None, all fields are set. Default is None.
857857
@@ -927,12 +927,12 @@ async def setitem(
927927
----------
928928
selection : BasicSelection
929929
The selection defining the region of the array to set.
930-
930+
931931
value : numpy.typing.ArrayLike
932932
The values to be written into the selected region of the array.
933-
933+
934934
prototype : BufferPrototype or None, optional
935-
A prototype buffer that defines the structure and properties of the array chunks being modified.
935+
A prototype buffer that defines the structure and properties of the array chunks being modified.
936936
If None, the default buffer prototype is used. Default is None.
937937
938938
Returns
@@ -944,7 +944,7 @@ async def setitem(
944944
------
945945
IndexError
946946
If the selection is out of bounds for the array.
947-
947+
948948
ValueError
949949
If the values are not compatible with the array's dtype or shape.
950950
@@ -972,9 +972,9 @@ async def resize(
972972
----------
973973
new_shape : ChunkCoords
974974
The desired new shape of the array.
975-
975+
976976
delete_outside_chunks : bool, optional
977-
If True (default), chunks that fall outside the new shape will be deleted. If False,
977+
If True (default), chunks that fall outside the new shape will be deleted. If False,
978978
the data in those chunks will be preserved.
979979
980980
Returns
@@ -1023,7 +1023,7 @@ async def update_attributes(self, new_attributes: dict[str, JSON]) -> AsyncArray
10231023
Parameters
10241024
----------
10251025
new_attributes : dict of str to JSON
1026-
A dictionary of new attributes to update or add to the array. The keys represent attribute
1026+
A dictionary of new attributes to update or add to the array. The keys represent attribute
10271027
names, and the values must be JSON-compatible.
10281028
10291029
Returns
@@ -1039,7 +1039,7 @@ async def update_attributes(self, new_attributes: dict[str, JSON]) -> AsyncArray
10391039
Notes
10401040
-----
10411041
- This method is asynchronous and should be awaited.
1042-
- The updated attributes will be merged with existing attributes, and any conflicts will be
1042+
- The updated attributes will be merged with existing attributes, and any conflicts will be
10431043
overwritten by the new values.
10441044
"""
10451045
new_metadata = self.metadata.update_attributes(new_attributes)

0 commit comments

Comments
 (0)