We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aeb1354 + 28b480d commit 1bce5daCopy full SHA for 1bce5da
zarr/codecs.py
@@ -557,10 +557,10 @@ def get_config(self):
557
558
def __repr__(self):
559
return (
560
- '%s(encode_dtype=%s, decode_dtype=%s)' % (
+ '%s(encode_dtype=%r, decode_dtype=%r)' % (
561
type(self).__name__,
562
- self.encode_dtype,
563
- self.decode_dtype
+ self.encode_dtype.str,
+ self.decode_dtype.str
564
)
565
566
zarr/tests/test_codecs.py
@@ -347,7 +347,7 @@ def test_decode_input(self):
347
348
def test_repr(self):
349
codec = self.init_codec(encode_dtype='i4', decode_dtype='i8')
350
- expect = 'AsType(encode_dtype=int32, decode_dtype=int64)'
+ expect = "AsType(encode_dtype='<i4', decode_dtype='<i8')"
351
actual = repr(codec)
352
eq(expect, actual)
353
0 commit comments