Skip to content

Commit 487dc37

Browse files
committed
fix: remove unused noop serializer
1 parent 7283182 commit 487dc37

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

aws_lambda_powertools/shared/headers_serializer.py

-9
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,3 @@ def serialize(self, headers: Dict[str, Union[str, List[str]]], cookies: List[Coo
123123
payload["headers"][key] = values[-1]
124124

125125
return payload
126-
127-
128-
class NoopSerializer(BaseHeadersSerializer):
129-
"""
130-
Noop serializer that doesn't do anything. This is useful for resolvers that don't need to set headers or cookies.
131-
"""
132-
133-
def serialize(self, headers: Dict[str, Union[str, List[str]]], cookies: List[Cookie]) -> Dict[str, Any]:
134-
return {}

aws_lambda_powertools/utilities/data_classes/bedrock_agent_event.py

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import Dict, List, Optional
22

3-
from aws_lambda_powertools.shared.headers_serializer import BaseHeadersSerializer, NoopSerializer
43
from aws_lambda_powertools.utilities.data_classes.common import BaseProxyEvent, DictWrapper
54

65

@@ -103,6 +102,3 @@ def prompt_session_attributes(self) -> Dict[str, str]:
103102
@property
104103
def path(self) -> str:
105104
return self["apiPath"]
106-
107-
def header_serializer(self) -> BaseHeadersSerializer:
108-
return NoopSerializer()

0 commit comments

Comments
 (0)