Skip to content

Commit 3a31515

Browse files
committed
add Array.attrs to docs
1 parent 9c66bc1 commit 3a31515

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zarr/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class Array(object):
3838
compression_opts
3939
fill_value
4040
order
41+
attrs
4142
size
4243
itemsize
4344
nbytes
@@ -154,7 +155,8 @@ def order(self):
154155

155156
@property
156157
def attrs(self):
157-
"""A MutableMapping containing user-defined attributes."""
158+
"""A MutableMapping containing user-defined attributes. Note that
159+
attribute values must be JSON serializable."""
158160
return self._attrs
159161

160162
@property

0 commit comments

Comments
 (0)