@@ -267,7 +267,7 @@ async def create(
267267 filters : list [dict [str , JSON ]] | None = None ,
268268 compressor : dict [str , JSON ] | None = None ,
269269 # runtime
270- exists_ok : bool = False ,
270+ overwrite : bool = False ,
271271 data : npt .ArrayLike | None = None ,
272272 ) -> AsyncArray [ArrayV2Metadata ]: ...
273273
@@ -295,7 +295,7 @@ async def create(
295295 codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
296296 dimension_names : Iterable [str ] | None = None ,
297297 # runtime
298- exists_ok : bool = False ,
298+ overwrite : bool = False ,
299299 data : npt .ArrayLike | None = None ,
300300 ) -> AsyncArray [ArrayV3Metadata ]: ...
301301
@@ -323,7 +323,7 @@ async def create(
323323 codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
324324 dimension_names : Iterable [str ] | None = None ,
325325 # runtime
326- exists_ok : bool = False ,
326+ overwrite : bool = False ,
327327 data : npt .ArrayLike | None = None ,
328328 ) -> AsyncArray [ArrayV3Metadata ]: ...
329329
@@ -356,7 +356,7 @@ async def create(
356356 filters : list [dict [str , JSON ]] | None = None ,
357357 compressor : dict [str , JSON ] | None = None ,
358358 # runtime
359- exists_ok : bool = False ,
359+ overwrite : bool = False ,
360360 data : npt .ArrayLike | None = None ,
361361 ) -> AsyncArray [ArrayV3Metadata ] | AsyncArray [ArrayV2Metadata ]: ...
362362
@@ -388,7 +388,7 @@ async def create(
388388 filters : list [dict [str , JSON ]] | None = None ,
389389 compressor : dict [str , JSON ] | None = None ,
390390 # runtime
391- exists_ok : bool = False ,
391+ overwrite : bool = False ,
392392 data : npt .ArrayLike | None = None ,
393393 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
394394 """
@@ -430,7 +430,7 @@ async def create(
430430 compressor : dict[str, JSON], optional
431431 The compressor used to compress the data (default is None).
432432 V2 only. V3 arrays should not have 'compressor' parameter.
433- exists_ok : bool, optional
433+ overwrite : bool, optional
434434 Whether to raise an error if the store already exists (default is False).
435435 data : npt.ArrayLike, optional
436436 The data to be inserted into the array (default is None).
@@ -490,7 +490,7 @@ async def create(
490490 codecs = codecs ,
491491 dimension_names = dimension_names ,
492492 attributes = attributes ,
493- exists_ok = exists_ok ,
493+ overwrite = overwrite ,
494494 order = order ,
495495 )
496496 elif zarr_format == 2 :
@@ -515,7 +515,7 @@ async def create(
515515 filters = filters ,
516516 compressor = compressor ,
517517 attributes = attributes ,
518- exists_ok = exists_ok ,
518+ overwrite = overwrite ,
519519 )
520520 else :
521521 raise ValueError (f"Insupported zarr_format. Got: { zarr_format } " )
@@ -545,9 +545,9 @@ async def _create_v3(
545545 codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
546546 dimension_names : Iterable [str ] | None = None ,
547547 attributes : dict [str , JSON ] | None = None ,
548- exists_ok : bool = False ,
548+ overwrite : bool = False ,
549549 ) -> AsyncArray [ArrayV3Metadata ]:
550- if exists_ok :
550+ if overwrite :
551551 if store_path .store .supports_deletes :
552552 await store_path .delete_dir ()
553553 else :
@@ -597,14 +597,14 @@ async def _create_v2(
597597 dtype : npt .DTypeLike ,
598598 chunks : ChunkCoords ,
599599 dimension_separator : Literal ["." , "/" ] | None = None ,
600- fill_value : None | float = None ,
600+ fill_value : float | None = None ,
601601 order : MemoryOrder | None = None ,
602602 filters : list [dict [str , JSON ]] | None = None ,
603603 compressor : dict [str , JSON ] | None = None ,
604604 attributes : dict [str , JSON ] | None = None ,
605- exists_ok : bool = False ,
605+ overwrite : bool = False ,
606606 ) -> AsyncArray [ArrayV2Metadata ]:
607- if exists_ok :
607+ if overwrite :
608608 if store_path .store .supports_deletes :
609609 await store_path .delete_dir ()
610610 else :
@@ -1464,7 +1464,7 @@ def create(
14641464 filters : list [dict [str , JSON ]] | None = None ,
14651465 compressor : dict [str , JSON ] | None = None ,
14661466 # runtime
1467- exists_ok : bool = False ,
1467+ overwrite : bool = False ,
14681468 ) -> Array :
14691469 """Creates a new Array instance from an initialized store.
14701470
@@ -1494,7 +1494,7 @@ def create(
14941494 The filters used to compress the data (default is None).
14951495 compressor : dict[str, JSON], optional
14961496 The compressor used to compress the data (default is None).
1497- exists_ok : bool, optional
1497+ overwrite : bool, optional
14981498 Whether to raise an error if the store already exists (default is False).
14991499
15001500 Returns
@@ -1519,7 +1519,7 @@ def create(
15191519 order = order ,
15201520 filters = filters ,
15211521 compressor = compressor ,
1522- exists_ok = exists_ok ,
1522+ overwrite = overwrite ,
15231523 ),
15241524 )
15251525 return cls (async_array )
0 commit comments