Skip to content

Commit c944e3b

Browse files
committed
revert: path_parameters and stage_variables unrelated to the issue
1 parent e5daeb3 commit c944e3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aws_lambda_powertools/utilities/data_classes/api_gateway_proxy_event.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ def request_context(self) -> APIGatewayEventRequestContext:
141141
return APIGatewayEventRequestContext(self._data)
142142

143143
@property
144-
def path_parameters(self) -> Dict[str, str]:
145-
return self.get("pathParameters") or {}
144+
def path_parameters(self) -> Optional[Dict[str, str]]:
145+
return self.get("pathParameters")
146146

147147
@property
148-
def stage_variables(self) -> Dict[str, str]:
149-
return self.get("stageVariables") or {}
148+
def stage_variables(self) -> Optional[Dict[str, str]]:
149+
return self.get("stageVariables")
150150

151151
def header_serializer(self) -> BaseHeadersSerializer:
152152
return MultiValueHeadersSerializer()

0 commit comments

Comments
 (0)