Skip to content

Commit c1ce6fa

Browse files
docs(event_sources): fix DynamoDB stream event docstring (#2468)
1 parent 80dfdd0 commit c1ce6fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: aws_lambda_powertools/utilities/data_classes/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, data: Dict[str, Any], json_deserializer: Optional[Callable] =
1616
data : Dict[str, Any]
1717
Lambda Event Source Event payload
1818
json_deserializer : Callable, optional
19-
function to deserialize `str`, `bytes`, bytearray` containing a JSON document to a Python `obj`,
19+
function to deserialize `str`, `bytes`, `bytearray` containing a JSON document to a Python `obj`,
2020
by default json.loads
2121
"""
2222
self._data = data

Diff for: aws_lambda_powertools/utilities/data_classes/dynamo_db_stream_event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def deserialize(self, value: Dict) -> Any:
3939
-------- ------
4040
{'NULL': True} None
4141
{'BOOL': True/False} True/False
42-
{'N': str(value)} str(value)
42+
{'N': Decimal(value)} Decimal(value)
4343
{'S': string} string
4444
{'B': bytes} bytes
4545
{'NS': [str(value)]} set([str(value)])

0 commit comments

Comments
 (0)