@@ -266,7 +266,7 @@ async def create(
266266 filters : list [dict [str , JSON ]] | None = None ,
267267 compressor : dict [str , JSON ] | None = None ,
268268 # runtime
269- exists_ok : bool = False ,
269+ overwrite : bool = False ,
270270 data : npt .ArrayLike | None = None ,
271271 ) -> AsyncArray [ArrayV2Metadata ]: ...
272272
@@ -294,7 +294,7 @@ async def create(
294294 codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
295295 dimension_names : Iterable [str ] | None = None ,
296296 # runtime
297- exists_ok : bool = False ,
297+ overwrite : bool = False ,
298298 data : npt .ArrayLike | None = None ,
299299 ) -> AsyncArray [ArrayV3Metadata ]: ...
300300
@@ -322,7 +322,7 @@ async def create(
322322 codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
323323 dimension_names : Iterable [str ] | None = None ,
324324 # runtime
325- exists_ok : bool = False ,
325+ overwrite : bool = False ,
326326 data : npt .ArrayLike | None = None ,
327327 ) -> AsyncArray [ArrayV3Metadata ]: ...
328328
@@ -355,7 +355,7 @@ async def create(
355355 filters : list [dict [str , JSON ]] | None = None ,
356356 compressor : dict [str , JSON ] | None = None ,
357357 # runtime
358- exists_ok : bool = False ,
358+ overwrite : bool = False ,
359359 data : npt .ArrayLike | None = None ,
360360 ) -> AsyncArray [ArrayV3Metadata ] | AsyncArray [ArrayV2Metadata ]: ...
361361
@@ -387,7 +387,7 @@ async def create(
387387 filters : list [dict [str , JSON ]] | None = None ,
388388 compressor : dict [str , JSON ] | None = None ,
389389 # runtime
390- exists_ok : bool = False ,
390+ overwrite : bool = False ,
391391 data : npt .ArrayLike | None = None ,
392392 ) -> AsyncArray [ArrayV2Metadata ] | AsyncArray [ArrayV3Metadata ]:
393393 """
@@ -429,7 +429,7 @@ async def create(
429429 compressor : dict[str, JSON], optional
430430 The compressor used to compress the data (default is None).
431431 V2 only. V3 arrays should not have 'compressor' parameter.
432- exists_ok : bool, optional
432+ overwrite : bool, optional
433433 Whether to raise an error if the store already exists (default is False).
434434 data : npt.ArrayLike, optional
435435 The data to be inserted into the array (default is None).
@@ -489,7 +489,7 @@ async def create(
489489 codecs = codecs ,
490490 dimension_names = dimension_names ,
491491 attributes = attributes ,
492- exists_ok = exists_ok ,
492+ overwrite = overwrite ,
493493 order = order ,
494494 )
495495 elif zarr_format == 2 :
@@ -522,7 +522,7 @@ async def create(
522522 filters = filters ,
523523 compressor = compressor ,
524524 attributes = attributes ,
525- exists_ok = exists_ok ,
525+ overwrite = overwrite ,
526526 )
527527 else :
528528 raise ValueError (f"Insupported zarr_format. Got: { zarr_format } " )
@@ -552,9 +552,9 @@ async def _create_v3(
552552 codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
553553 dimension_names : Iterable [str ] | None = None ,
554554 attributes : dict [str , JSON ] | None = None ,
555- exists_ok : bool = False ,
555+ overwrite : bool = False ,
556556 ) -> AsyncArray [ArrayV3Metadata ]:
557- if exists_ok :
557+ if overwrite :
558558 if store_path .store .supports_deletes :
559559 await store_path .delete_dir ()
560560 else :
@@ -604,14 +604,14 @@ async def _create_v2(
604604 dtype : npt .DTypeLike ,
605605 chunks : ChunkCoords ,
606606 dimension_separator : Literal ["." , "/" ] | None = None ,
607- fill_value : None | float = None ,
607+ fill_value : float | None = None ,
608608 order : MemoryOrder | None = None ,
609609 filters : list [dict [str , JSON ]] | None = None ,
610610 compressor : dict [str , JSON ] | None = None ,
611611 attributes : dict [str , JSON ] | None = None ,
612- exists_ok : bool = False ,
612+ overwrite : bool = False ,
613613 ) -> AsyncArray [ArrayV2Metadata ]:
614- if exists_ok :
614+ if overwrite :
615615 if store_path .store .supports_deletes :
616616 await store_path .delete_dir ()
617617 else :
@@ -1463,7 +1463,7 @@ def create(
14631463 filters : list [dict [str , JSON ]] | None = None ,
14641464 compressor : dict [str , JSON ] | None = None ,
14651465 # runtime
1466- exists_ok : bool = False ,
1466+ overwrite : bool = False ,
14671467 ) -> Array :
14681468 """Creates a new Array instance from an initialized store.
14691469
@@ -1493,7 +1493,7 @@ def create(
14931493 The filters used to compress the data (default is None).
14941494 compressor : dict[str, JSON], optional
14951495 The compressor used to compress the data (default is None).
1496- exists_ok : bool, optional
1496+ overwrite : bool, optional
14971497 Whether to raise an error if the store already exists (default is False).
14981498
14991499 Returns
@@ -1518,7 +1518,7 @@ def create(
15181518 order = order ,
15191519 filters = filters ,
15201520 compressor = compressor ,
1521- exists_ok = exists_ok ,
1521+ overwrite = overwrite ,
15221522 ),
15231523 )
15241524 return cls (async_array )
0 commit comments