Skip to content

Commit 96081a1

Browse files
make string set as Map value
1 parent 86e9bbf commit 96081a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pynamodb/attributes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from inspect import getargspec
1414
from pynamodb.constants import (
1515
STRING, STRING_SHORT, NUMBER, BINARY, UTC, DATETIME_FORMAT, BINARY_SET, STRING_SET, NUMBER_SET,
16-
MAP, MAP_SHORT, LIST, LIST_SHORT, DEFAULT_ENCODING, BOOLEAN, ATTR_TYPE_MAP, NUMBER_SHORT, NULL, SHORT_ATTR_TYPES
16+
MAP, MAP_SHORT, LIST, LIST_SHORT, DEFAULT_ENCODING, BOOLEAN, ATTR_TYPE_MAP, NUMBER_SHORT, NULL, SHORT_ATTR_TYPES,
17+
STRING_SET_SHORT
1718
)
1819
from pynamodb.compat import getmembers_issubclass
1920
from pynamodb.expressions.operand import Path
@@ -952,7 +953,8 @@ def deserialize(self, values):
952953
STRING_SHORT: UnicodeAttribute(),
953954
BOOLEAN: BooleanAttribute(),
954955
MAP_SHORT: MapAttribute(),
955-
NULL: NullAttribute()
956+
NULL: NullAttribute(),
957+
STRING_SET_SHORT: UnicodeSetAttribute()
956958
}
957959

958960
SERIALIZE_CLASS_MAP = {

0 commit comments

Comments
 (0)