File tree 2 files changed +5
-5
lines changed
aws_lambda_powertools/utilities/batch 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import traceback
8
8
from types import TracebackType
9
- from typing import Optional , Tuple
9
+ from typing import Optional , Tuple , Type
10
10
11
- ExceptionInfo = Tuple [Optional [type [BaseException ]], Optional [BaseException ], Optional [TracebackType ]]
11
+ ExceptionInfo = Tuple [Optional [Type [BaseException ]], Optional [BaseException ], Optional [TracebackType ]]
12
12
13
13
14
14
class BaseBatchProcessingError (Exception ):
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import sys
4
- from typing import Optional , TypedDict , Union
4
+ from typing import Optional , Type , TypedDict , Union
5
5
6
6
has_pydantic = "pydantic" in sys .modules
7
7
14
14
)
15
15
16
16
BatchTypeModels = Optional [
17
- Union [type [SqsRecordModel ], type [DynamoDBStreamRecordModel ], type [KinesisDataStreamRecordModel ]]
17
+ Union [Type [SqsRecordModel ], Type [DynamoDBStreamRecordModel ], Type [KinesisDataStreamRecordModel ]]
18
18
]
19
- BatchSqsTypeModel = Optional [type [SqsRecordModel ]]
19
+ BatchSqsTypeModel = Optional [Type [SqsRecordModel ]]
20
20
else : # pragma: no cover
21
21
BatchTypeModels = "BatchTypeModels" # type: ignore
22
22
BatchSqsTypeModel = "BatchSqsTypeModel" # type: ignore
You can’t perform that action at this time.
0 commit comments