Skip to content

fix(apigateway): support @app.not_found() syntax & housekeeping #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: minor docstring typos
  • Loading branch information
Michael Brewer committed Dec 25, 2021
commit 28384c3a3d35ff5cb8e34d90729c41d99d417341
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def session(self) -> List[ChallengeResult]:
@property
def client_metadata(self) -> Optional[Dict[str, str]]:
"""One or more key-value pairs that you can provide as custom input to the Lambda function that you
specify for the create auth challenge trigger.."""
specify for the create auth challenge trigger."""
return self["request"].get("clientMetadata")


Expand Down
4 changes: 2 additions & 2 deletions aws_lambda_powertools/utilities/data_classes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_header_value(
name_lower = name.lower()

return next(
# Iterate over the dict and do a case insensitive key comparison
# Iterate over the dict and do a case-insensitive key comparison
(value for key, value in headers.items() if key.lower() == name_lower),
# Default value is returned if no matches was found
default_value,
Expand Down Expand Up @@ -116,7 +116,7 @@ def get_header_value(
default_value: str, optional
Default value if no value was found by name
case_sensitive: bool
Whether to use a case sensitive look up
Whether to use a case-sensitive look up
Returns
-------
str, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ class IdempotencyPersistenceLayerError(Exception):

class IdempotencyKeyError(Exception):
"""
Payload does not contain a idempotent key
Payload does not contain an idempotent key
"""