Skip to content

Commit 5e39fcc

Browse files
committed
added bytes and unicode to _supported_scalars_types
1 parent 01446c0 commit 5e39fcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

larray/inout/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from datetime import date, time, datetime
55
from collections import OrderedDict
66

7+
from larray.util.compat import bytes, unicode
78
from larray.core.axis import Axis
89
from larray.core.group import Group
910
from larray.core.array import Array
@@ -14,7 +15,7 @@
1415

1516
# only for HDF5 and pickle formats
1617
# support list, tuple and dict?
17-
_supported_scalars_types = (int, float, bool, str, date, time, datetime)
18+
_supported_scalars_types = (int, float, bool, str, bytes, unicode, date, time, datetime)
1819
_supported_types = _supported_larray_types + _supported_scalars_types
1920
_supported_typenames = {cls.__name__ for cls in _supported_types}
2021

0 commit comments

Comments
 (0)