Skip to content

Commit 8831b4b

Browse files
author
Michal Ploski
committed
Cleanup unused variable and repeated code
1 parent 521bf92 commit 8831b4b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

aws_lambda_powertools/utilities/parameters/base.py

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
ExpirableValue = namedtuple("ExpirableValue", ["value", "ttl"])
1616
# These providers will be dynamically initialized on first use of the helper functions
1717
DEFAULT_PROVIDERS: Dict[str, Any] = {}
18-
MULTIPLE_VALUES_TYPE: Union[Dict[str, str], Dict[str, dict], Dict[str, bytes], Dict[str, None]]
1918
TRANSFORM_METHOD_JSON = "json"
2019
TRANSFORM_METHOD_BINARY = "binary"
2120
SUPPORTED_TRANSFORM_METHODS = [TRANSFORM_METHOD_JSON, TRANSFORM_METHOD_BINARY]

aws_lambda_powertools/utilities/parser/envelopes/kinesis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ def parse(self, data: Optional[Union[Dict[str, Any], Any]], model: Type[Model])
4141
for record in parsed_envelope.Records:
4242
# We allow either AWS expected contract (bytes) or a custom Model, see #943
4343
data = cast(bytes, record.kinesis.data)
44-
models.append(self._parse(data=cast(bytes, record.kinesis.data).decode("utf-8"), model=model))
44+
models.append(self._parse(data=data.decode("utf-8"), model=model))
4545
return models

0 commit comments

Comments
 (0)