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