1616 JSON ,
1717 AccessModeLiteral ,
1818 ChunkCoords ,
19+ DimensionNames ,
1920 MemoryOrder ,
2021 ZarrFormat ,
2122 _default_zarr_format ,
@@ -865,7 +866,7 @@ async def create(
865866 | None
866867 ) = None ,
867868 codecs : Iterable [Codec | dict [str , JSON ]] | None = None ,
868- dimension_names : Iterable [ str ] | None = None ,
869+ dimension_names : DimensionNames = None ,
869870 storage_options : dict [str , Any ] | None = None ,
870871 config : ArrayConfigLike | None = None ,
871872 ** kwargs : Any ,
@@ -1040,15 +1041,13 @@ async def create(
10401041 )
10411042 warnings .warn (UserWarning (msg ), stacklevel = 1 )
10421043 config_dict ["write_empty_chunks" ] = write_empty_chunks
1043- if order is not None :
1044- if config is not None :
1045- msg = (
1046- "Both order and config keyword arguments are set. "
1047- "This is redundant. When both are set, order will be ignored and "
1048- "config will be used."
1049- )
1050- warnings .warn (UserWarning (msg ), stacklevel = 1 )
1051- config_dict ["order" ] = order
1044+ if order is not None and config is not None :
1045+ msg = (
1046+ "Both order and config keyword arguments are set. "
1047+ "This is redundant. When both are set, order will be ignored and "
1048+ "config will be used."
1049+ )
1050+ warnings .warn (UserWarning (msg ), stacklevel = 1 )
10521051
10531052 config_parsed = ArrayConfig .from_dict (config_dict )
10541053
@@ -1062,6 +1061,7 @@ async def create(
10621061 overwrite = overwrite ,
10631062 filters = filters ,
10641063 dimension_separator = dimension_separator ,
1064+ order = order ,
10651065 zarr_format = zarr_format ,
10661066 chunk_shape = chunk_shape ,
10671067 chunk_key_encoding = chunk_key_encoding ,
0 commit comments