@@ -194,8 +194,6 @@ def compute_encoded_size(self, input_byte_length: int, chunk_spec: ArraySpec) ->
194194
195195class ShuffleCodec (NumcodecsBytesBytesCodec ):
196196 def __init__ (self , codec_config : dict [str , JSON ] | None = None ) -> None :
197- if codec_config is None :
198- codec_config = {}
199197 super ().__init__ (codec_id = "shuffle" , codec_config = codec_config )
200198
201199 def evolve_from_array_spec (self , array_spec : ArraySpec ) -> Self :
@@ -206,8 +204,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
206204
207205class FixedScaleOffsetCodec (NumcodecsArrayArrayCodec ):
208206 def __init__ (self , codec_config : dict [str , JSON ] | None = None ) -> None :
209- if codec_config is None :
210- codec_config = {}
211207 super ().__init__ (codec_id = "fixedscaleoffset" , codec_config = codec_config )
212208
213209 def resolve_metadata (self , chunk_spec : ArraySpec ) -> ArraySpec :
@@ -223,8 +219,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
223219
224220class QuantizeCodec (NumcodecsArrayArrayCodec ):
225221 def __init__ (self , codec_config : dict [str , JSON ] | None = None ) -> None :
226- if codec_config is None :
227- codec_config = {}
228222 super ().__init__ (codec_id = "quantize" , codec_config = codec_config )
229223
230224 def evolve_from_array_spec (self , array_spec : ArraySpec ) -> Self :
@@ -235,8 +229,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
235229
236230class AsTypeCodec (NumcodecsArrayArrayCodec ):
237231 def __init__ (self , codec_config : dict [str , JSON ] | None = None ) -> None :
238- if codec_config is None :
239- codec_config = {}
240232 super ().__init__ (codec_id = "astype" , codec_config = codec_config )
241233
242234 def resolve_metadata (self , chunk_spec : ArraySpec ) -> ArraySpec :
@@ -251,8 +243,6 @@ def evolve_from_array_spec(self, array_spec: ArraySpec) -> Self:
251243
252244class PackbitsCodec (NumcodecsArrayArrayCodec ):
253245 def __init__ (self , codec_config : dict [str , JSON ] | None = None ) -> None :
254- if codec_config is None :
255- codec_config = {}
256246 super ().__init__ (codec_id = "packbits" , codec_config = codec_config )
257247
258248 def resolve_metadata (self , chunk_spec : ArraySpec ) -> ArraySpec :
0 commit comments