88import pytest
99
1010import zarr
11- from zarr import Array , zeros , AsyncArray
12- from zarr .abc .codec import CodecInput , CodecOutput , CodecPipeline , Codec
11+ from zarr import Array , AsyncArray , zeros
12+ from zarr .abc .codec import Codec , CodecInput , CodecOutput , CodecPipeline
1313from zarr .abc .store import ByteSetter , Store
1414from zarr .codecs import (
1515 BloscCodec ,
2525from zarr .core .codec_pipeline import BatchedCodecPipeline
2626from zarr .core .config import BadConfigError , config
2727from zarr .core .indexing import SelectorTuple
28- from zarr .core .strings import _STRING_DTYPE
2928from zarr .registry import (
3029 fully_qualified_name ,
3130 get_buffer_class ,
@@ -256,13 +255,14 @@ def test_config_buffer_implementation() -> None:
256255 assert np .array_equal (arr_Crc32c [:], data2d )
257256
258257
259- @pytest .mark .parametrize (("dtype" , "expected_codecs" ),
258+ @pytest .mark .parametrize (
259+ ("dtype" , "expected_codecs" ),
260260 [
261261 ("int" , [BytesCodec (), GzipCodec ()]),
262262 ("bytes" , [VLenBytesCodec ()]),
263263 ("str" , [VLenUTF8Codec ()]),
264- ]
265- )
264+ ],
265+ )
266266async def test_default_codecs (dtype : str , expected_codecs : list [Codec ]) -> None :
267267 with config .set (
268268 {
@@ -273,5 +273,11 @@ async def test_default_codecs(dtype: str, expected_codecs: list[Codec]) -> None:
273273 }
274274 }
275275 ):
276- arr = await AsyncArray .create (shape = (100 ,), chunk_shape = (100 ,),dtype = np .dtype (dtype ), zarr_format = 3 , store = MemoryStore ())
276+ arr = await AsyncArray .create (
277+ shape = (100 ,),
278+ chunk_shape = (100 ,),
279+ dtype = np .dtype (dtype ),
280+ zarr_format = 3 ,
281+ store = MemoryStore (),
282+ )
277283 assert arr .metadata .codecs == expected_codecs
0 commit comments