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 a2efb4c

Browse files
committedApr 15, 2025·
Using generics types
1 parent 2c130cf commit a2efb4c

File tree

53 files changed

+132
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+132
-21
lines changed
 

‎aws_lambda_powertools/utilities/data_classes/active_mq_event.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
from __future__ import annotations
22

33
from functools import cached_property
4-
from typing import Any, Iterator
4+
from typing import TYPE_CHECKING, Any
55

66
from aws_lambda_powertools.utilities.data_classes.common import DictWrapper
77
from aws_lambda_powertools.utilities.data_classes.shared_functions import base64_decode
88

9+
if TYPE_CHECKING:
10+
from collections.abc import Iterator
11+
912

1013
class ActiveMQMessage(DictWrapper):
1114
@property

‎aws_lambda_powertools/utilities/data_classes/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
import base64
1010
import json
1111
import warnings
12+
from collections.abc import Mapping
1213
from functools import cached_property
13-
from typing import TYPE_CHECKING, Any, Callable, Iterator, Mapping, overload
14+
from typing import TYPE_CHECKING, Any, overload
1415

1516
from typing_extensions import deprecated
1617

1718
from aws_lambda_powertools.warnings import PowertoolsDeprecationWarning
1819

1920
if TYPE_CHECKING:
21+
from collections.abc import Callable, Iterator
22+
2023
from aws_lambda_powertools.shared.headers_serializer import BaseHeadersSerializer
2124

2225
from aws_lambda_powertools.utilities.data_classes.shared_functions import (

0 commit comments

Comments
 (0)
Please sign in to comment.