Skip to content

Commit 0f15bb1

Browse files
MHannilagarrettheel
authored andcommitted
Fix mutable defaults in documentation example (pynamodb#507)
1 parent d6ee8c2 commit 0f15bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/updates.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Suppose that you have defined a `Thread` Model for the examples below.
2020
table_name = 'Thread'
2121
2222
forum_name = UnicodeAttribute(hash_key=True)
23-
subjects = UnicodeSetAttribute(default={})
23+
subjects = UnicodeSetAttribute(default=dict)
2424
views = NumberAttribute(default=0)
25-
notes = ListAttribute(default=[])
25+
notes = ListAttribute(default=list)
2626
2727
2828
.. _updates:

0 commit comments

Comments
 (0)