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 @@ -2166,7 +2166,7 @@ def _create(
2166
2166
# runtime
2167
2167
overwrite : bool = False ,
2168
2168
config : ArrayConfigLike | None = None ,
2169
- ) -> AnyArray :
2169
+ ) -> Self :
2170
2170
"""Creates a new Array instance from an initialized store.
2171
2171
Deprecated in favor of [`zarr.create_array`][].
2172
2172
"""
@@ -2191,14 +2191,14 @@ def _create(
2191
2191
config = config ,
2192
2192
),
2193
2193
)
2194
- return Array (async_array )
2194
+ return cls (async_array )
2195
2195
2196
2196
@classmethod
2197
2197
def from_dict (
2198
2198
cls ,
2199
2199
store_path : StorePath ,
2200
2200
data : dict [str , JSON ],
2201
- ) -> AnyArray :
2201
+ ) -> Self :
2202
2202
"""
2203
2203
Create a Zarr array from a dictionary.
2204
2204
@@ -2222,13 +2222,13 @@ def from_dict(
2222
2222
If the dictionary data is invalid or missing required fields for array creation.
2223
2223
"""
2224
2224
async_array = AsyncArray .from_dict (store_path = store_path , data = data )
2225
- return Array (async_array )
2225
+ return cls (async_array )
2226
2226
2227
2227
@classmethod
2228
2228
def open (
2229
2229
cls ,
2230
2230
store : StoreLike ,
2231
- ) -> AnyArray :
2231
+ ) -> Self :
2232
2232
"""Opens an existing Array from a store.
2233
2233
2234
2234
Parameters
@@ -2242,7 +2242,7 @@ def open(
2242
2242
Array opened from the store.
2243
2243
"""
2244
2244
async_array = sync (AsyncArray .open (store ))
2245
- return Array (async_array )
2245
+ return cls (async_array )
2246
2246
2247
2247
@property
2248
2248
def store (self ) -> Store :
You can’t perform that action at this time.
0 commit comments