@@ -206,7 +206,7 @@ def rmdir(store: StoreLike, path: Path = None):
206
206
store_version = getattr (store , "_store_version" , 2 )
207
207
if hasattr (store , "rmdir" ) and store .is_erasable (): # type: ignore
208
208
# pass through
209
- store .rmdir (path ) # type: ignore
209
+ store .rmdir (path )
210
210
else :
211
211
# slow version, delete one key at a time
212
212
if store_version == 2 :
@@ -236,7 +236,7 @@ def listdir(store: BaseStore, path: Path = None):
236
236
path = normalize_storage_path (path )
237
237
if hasattr (store , "listdir" ):
238
238
# pass through
239
- return store .listdir (path ) # type: ignore
239
+ return store .listdir (path )
240
240
else :
241
241
# slow version, iterate through all keys
242
242
warnings .warn (
@@ -289,7 +289,7 @@ def getsize(store: BaseStore, path: Path = None) -> int:
289
289
if hasattr (store , "getsize" ):
290
290
# pass through
291
291
path = normalize_storage_path (path )
292
- return store .getsize (path ) # type: ignore
292
+ return store .getsize (path )
293
293
elif isinstance (store , MutableMapping ):
294
294
return _getsize (store , path )
295
295
else :
@@ -627,7 +627,7 @@ def _init_array_metadata(
627
627
628
628
key = _prefix_to_array_key (store , _path_to_prefix (path ))
629
629
if hasattr (store , "_metadata_class" ):
630
- store [key ] = store ._metadata_class .encode_array_metadata (meta ) # type: ignore
630
+ store [key ] = store ._metadata_class .encode_array_metadata (meta )
631
631
else :
632
632
store [key ] = encode_array_metadata (meta )
633
633
@@ -730,10 +730,10 @@ def _init_group_metadata(
730
730
if store_version == 3 :
731
731
meta = {"attributes" : {}} # type: ignore
732
732
else :
733
- meta = {} # type: ignore
733
+ meta = {}
734
734
key = _prefix_to_group_key (store , _path_to_prefix (path ))
735
735
if hasattr (store , "_metadata_class" ):
736
- store [key ] = store ._metadata_class .encode_group_metadata (meta ) # type: ignore
736
+ store [key ] = store ._metadata_class .encode_group_metadata (meta )
737
737
else :
738
738
store [key ] = encode_group_metadata (meta )
739
739
0 commit comments