Skip to content

Commit 251541c

Browse files
committed
fix: mypy typing
1 parent 09257ba commit 251541c

File tree

1 file changed

+3
-1
lines changed
  • aws_lambda_powertools/utilities/batch

1 file changed

+3
-1
lines changed

aws_lambda_powertools/utilities/batch/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
from aws_lambda_powertools.utilities.parser.models import KinesisDataStreamRecord as KinesisDataStreamRecordModel
2929
from aws_lambda_powertools.utilities.parser.models import SqsRecordModel
3030

31-
BatchTypeModels = Union[SqsRecordModel, DynamoDBStreamRecordModel, KinesisDataStreamRecordModel]
31+
BatchTypeModels = Optional[
32+
Union[Type[SqsRecordModel], Type[DynamoDBStreamRecordModel], Type[KinesisDataStreamRecordModel]]
33+
]
3234

3335

3436
class EventType(Enum):

0 commit comments

Comments
 (0)