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.
1 parent ca7e01b commit 2a5c613Copy full SHA for 2a5c613
numcodecs/astype.py
@@ -80,9 +80,9 @@ def get_config(self):
80
81
def __repr__(self):
82
return (
83
- '%s(encode_dtype=%s, decode_dtype=%s)' % (
+ '%s(encode_dtype=%r, decode_dtype=%r)' % (
84
type(self).__name__,
85
- self.encode_dtype,
86
- self.decode_dtype
+ self.encode_dtype.str,
+ self.decode_dtype.str
87
)
88
numcodecs/tests/test_astype.py
@@ -57,4 +57,4 @@ def test_config():
57
58
59
def test_repr():
60
- check_repr("AsType(encode_dtype=int32, decode_dtype=int64)")
+ check_repr("AsType(encode_dtype='<i4', decode_dtype='<i2')")
0 commit comments