Skip to content

Commit 9734688

Browse files
chore(event_handler): fix typos in api_gateway.py file (#7619)
Fix typos in api_gateway.py documentation Signed-off-by: Marvellous Osuolale <[email protected]> Co-authored-by: Leandro Damascena <[email protected]>
1 parent ea28aa0 commit 9734688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def _build_middleware_stack(self, router_middlewares: list[Callable[..., Any]],
498498
to force the Python call stack created by the handler call-chain to naturally un-wind.
499499
500500
This becomes a simple concept for developers to understand and reason with - no additional
501-
gymanstics other than plain old try ... except.
501+
gymnastics other than plain old try ... except.
502502
503503
Notes
504504
-----
@@ -1650,7 +1650,7 @@ def _registered_api_adapter(
16501650

16511651

16521652
class ApiGatewayResolver(BaseRouter):
1653-
"""API Gateway, VPC Laticce, Bedrock and ALB proxy resolver
1653+
"""API Gateway, VPC Lattice, Bedrock and ALB proxy resolver
16541654
16551655
Examples
16561656
--------
@@ -2886,7 +2886,7 @@ def _get_fields_from_routes(routes: Sequence[Route]) -> list[ModelField]:
28862886
for route in routes:
28872887
if route.body_field:
28882888
if not isinstance(route.body_field, ModelField):
2889-
raise AssertionError("A request body myst be a Pydantic Field")
2889+
raise AssertionError("A request body must be a Pydantic Field")
28902890
body_fields_from_routes.append(route.body_field)
28912891

28922892
params = get_flat_params(route.dependant)

0 commit comments

Comments
 (0)