Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 34aec78

Browse files
committedAug 15, 2024··
Fix subclassing Dict in Python 3.8
1 parent bfcaf0c commit 34aec78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎aws_lambda_powertools/utilities/data_classes/sqs_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from functools import cached_property
4-
from typing import Any, ItemsView, Iterator, TypeVar
4+
from typing import Any, Dict, ItemsView, Iterator, TypeVar
55

66
from aws_lambda_powertools.utilities.data_classes import S3Event
77
from aws_lambda_powertools.utilities.data_classes.common import DictWrapper
@@ -86,7 +86,7 @@ def data_type(self) -> str:
8686
return self["dataType"]
8787

8888

89-
class SQSMessageAttributes(dict[str, SQSMessageAttribute]):
89+
class SQSMessageAttributes(Dict[str, SQSMessageAttribute]):
9090
def __getitem__(self, key: str) -> SQSMessageAttribute | None: # type: ignore
9191
item = super().get(key)
9292
return None if item is None else SQSMessageAttribute(item) # type: ignore

0 commit comments

Comments
 (0)
Please sign in to comment.