File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2172,7 +2172,7 @@ def _create(
2172
2172
# runtime
2173
2173
overwrite : bool = False ,
2174
2174
config : ArrayConfigLike | None = None ,
2175
- ) -> AnyArray :
2175
+ ) -> Self :
2176
2176
"""Creates a new Array instance from an initialized store.
2177
2177
Deprecated in favor of [`zarr.create_array`][].
2178
2178
"""
@@ -2197,14 +2197,14 @@ def _create(
2197
2197
config = config ,
2198
2198
),
2199
2199
)
2200
- return Array (async_array )
2200
+ return cls (async_array )
2201
2201
2202
2202
@classmethod
2203
2203
def from_dict (
2204
2204
cls ,
2205
2205
store_path : StorePath ,
2206
2206
data : dict [str , JSON ],
2207
- ) -> AnyArray :
2207
+ ) -> Self :
2208
2208
"""
2209
2209
Create a Zarr array from a dictionary.
2210
2210
@@ -2228,13 +2228,13 @@ def from_dict(
2228
2228
If the dictionary data is invalid or missing required fields for array creation.
2229
2229
"""
2230
2230
async_array = AsyncArray .from_dict (store_path = store_path , data = data )
2231
- return Array (async_array )
2231
+ return cls (async_array )
2232
2232
2233
2233
@classmethod
2234
2234
def open (
2235
2235
cls ,
2236
2236
store : StoreLike ,
2237
- ) -> AnyArray :
2237
+ ) -> Self :
2238
2238
"""Opens an existing Array from a store.
2239
2239
2240
2240
Parameters
@@ -2250,7 +2250,7 @@ def open(
2250
2250
Array opened from the store.
2251
2251
"""
2252
2252
async_array = sync (AsyncArray .open (store ))
2253
- return Array (async_array )
2253
+ return cls (async_array )
2254
2254
2255
2255
@property
2256
2256
def store (self ) -> Store :
You can’t perform that action at this time.
0 commit comments