Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 85dc7b4

Browse files
committed
Docs for the data attribute's new string limitations
1 parent 7509dfc commit 85dc7b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/documents.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ Metadata
145145
>>> obj.data
146146
{'category': 'hip-hop', 'byline': 'Ben Welsh', 'pub_date': datetime.date(2011, 3, 1)}
147147

148+
Keys and values also must be strings. No integers or other numbers.
149+
150+
>>> obj.data = dict(number=1)
151+
TypeError: data attribute values must be strings
152+
148153
.. attribute:: document_obj.description
149154

150155
A summary of the document. Can be edited and saved with a put command.

0 commit comments

Comments
 (0)