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 @@ -2215,7 +2215,7 @@ def _create(
22152215 # runtime
22162216 overwrite : bool = False ,
22172217 config : ArrayConfigLike | None = None ,
2218- ) -> AnyArray :
2218+ ) -> Self :
22192219 """Creates a new Array instance from an initialized store.
22202220 Deprecated in favor of [`zarr.create_array`][].
22212221 """
@@ -2240,14 +2240,14 @@ def _create(
22402240 config = config ,
22412241 ),
22422242 )
2243- return Array (async_array )
2243+ return cls (async_array )
22442244
22452245 @classmethod
22462246 def from_dict (
22472247 cls ,
22482248 store_path : StorePath ,
22492249 data : dict [str , JSON ],
2250- ) -> AnyArray :
2250+ ) -> Self :
22512251 """
22522252 Create a Zarr array from a dictionary.
22532253
@@ -2271,13 +2271,13 @@ def from_dict(
22712271 If the dictionary data is invalid or missing required fields for array creation.
22722272 """
22732273 async_array = AsyncArray .from_dict (store_path = store_path , data = data )
2274- return Array (async_array )
2274+ return cls (async_array )
22752275
22762276 @classmethod
22772277 def open (
22782278 cls ,
22792279 store : StoreLike ,
2280- ) -> AnyArray :
2280+ ) -> Self :
22812281 """Opens an existing Array from a store.
22822282
22832283 Parameters
@@ -2293,7 +2293,7 @@ def open(
22932293 Array opened from the store.
22942294 """
22952295 async_array = sync (AsyncArray .open (store ))
2296- return Array (async_array )
2296+ return cls (async_array )
22972297
22982298 @property
22992299 def store (self ) -> Store :
You can’t perform that action at this time.
0 commit comments