Skip to content

Commit 3b6f070

Browse files
Update aws_lambda_powertools/event_handler/api_gateway.py
Co-authored-by: Heitor Lessa <[email protected]> Signed-off-by: Ruben Fonseca <[email protected]>
1 parent 31759ec commit 3b6f070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ def _compile_regex(rule: str, base_regex: str = _ROUTE_REGEX):
17871787
rule_regex: str = re.sub(_DYNAMIC_ROUTE_PATTERN, _NAMED_GROUP_BOUNDARY_PATTERN, rule)
17881788
return re.compile(base_regex.format(rule_regex))
17891789

1790-
def _to_proxy_event(self, event: Dict) -> BaseProxyEvent: # noqa: PLR0911
1790+
def _to_proxy_event(self, event: Dict) -> BaseProxyEvent: # noqa: PLR0911 # ignore many returns
17911791
"""Convert the event dict to the corresponding data class"""
17921792
if self._proxy_type == ProxyEventType.APIGatewayProxyEvent:
17931793
logger.debug("Converting event to API Gateway REST API contract")

0 commit comments

Comments
 (0)