@@ -1354,7 +1354,7 @@ async def test_chunk_encoding_wrong_type(
13541354 dtype = "uint8" ,
13551355 shape = (10 ,),
13561356 zarr_format = 3 ,
1357- ** {argument_key : codec },
1357+ ** {argument_key : codec }, # type: ignore[arg-type]
13581358 )
13591359
13601360 @staticmethod
@@ -1375,7 +1375,10 @@ async def test_chunk_encoding_wrong_type(
13751375 async def test_chunk_encoding_missing_arguments (
13761376 store : MemoryStore ,
13771377 argument_key : str ,
1378- codec : str | tuple [FiltersLike | SerializerLike | CompressorsLike ],
1378+ codec : FiltersLike
1379+ | SerializerLike
1380+ | CompressorsLike
1381+ | tuple [FiltersLike | SerializerLike | CompressorsLike ],
13791382 codec_cls_name : str ,
13801383 zarr_format : ZarrFormat ,
13811384 ) -> None :
@@ -1392,15 +1395,15 @@ class MockCompressorRequiresConfig3(BytesBytesCodec):
13921395 def compute_encoded_size (
13931396 self , input_byte_length : int , chunk_spec : ArraySpec
13941397 ) -> int :
1395- pass
1398+ return 0
13961399
13971400 def __init__ (self , * , argument : str ) -> None :
13981401 super ().__init__ ()
13991402
14001403 register_codec ("mock_compressor_v3" , MockCompressorRequiresConfig3 )
14011404 elif "mock_compressor_v2" in codec :
1402-
1403- class MockCompressorRequiresConfig2 (numcodecs .abc .Codec ):
1405+ # ignore mypy error because numcodecs is not typed
1406+ class MockCompressorRequiresConfig2 (numcodecs .abc .Codec ): # type: ignore[misc]
14041407 def __init__ (self , * , argument : str ) -> None :
14051408 super ().__init__ ()
14061409
@@ -1421,7 +1424,7 @@ def decode(self, buf: Any, out=None) -> Any: # type: ignore[no-untyped-def]
14211424 dtype = "uint8" ,
14221425 shape = (10 ,),
14231426 zarr_format = zarr_format ,
1424- ** {argument_key : codec },
1427+ ** {argument_key : codec }, # type: ignore[arg-type]
14251428 )
14261429
14271430 @staticmethod
0 commit comments