Expected Behaviour
I'd expect the value of items() calls to equal the values from __getitem__
Current Behaviour
You get SQSMessageAttribute from __getitem__ and (str, Any) Tuples from items
Code snippet
attributes = SQSMessageAttributes({"key":{"stringValue":"value", "dataType":"String"}})
assert attributes.items()[0][0] != attributes[attributes.key()]
Possible Solution
Either rewrite on the way in, or override items.
Steps to Reproduce
attributes = SQSMessageAttribute({"key":{"stringValue":"value", "dataType":"String"}})
assert attributes.items()[0][0] != attributes[attributes.key()]
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.8
Packaging format used
PyPi
Debugging logs
No response
Expected Behaviour
I'd expect the value of
items()calls to equal the values from__getitem__Current Behaviour
You get SQSMessageAttribute from
__getitem__and(str, Any)Tuples fromitemsCode snippet
Possible Solution
Either rewrite on the way in, or override items.
Steps to Reproduce
attributes = SQSMessageAttribute({"key":{"stringValue":"value", "dataType":"String"}})
assert attributes.items()[0][0] != attributes[attributes.key()]
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.8
Packaging format used
PyPi
Debugging logs
No response