Skip to content

Commit

Permalink
Fix documentation for MapAttribute (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wurstnase and Nico Tonnhofer authored Jan 21, 2024
1 parent d61d906 commit b16231d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynamodb/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ class MapAttribute(Attribute[Mapping[_KT, _VT]], AttributeContainer, metaclass=M
For example, below we define "MyModel" which contains a MapAttribute "my_map":
class MyModel(Model):
my_map = MapAttribute(attr_name="dynamo_name", default={})
my_map = MapAttribute(attr_name="dynamo_name", default=dict)
When instantiated in this manner (as a class attribute of an AttributeContainer class), the MapAttribute
class acts as an instance of the Attribute class. The instance stores data about the attribute (in this
Expand Down

0 comments on commit b16231d

Please sign in to comment.