- Notifications
You must be signed in to change notification settings - Fork 454
Description
What were you searching in the docs?
I was searching for information on lambda context typing and how to deal with it in test cases. While reviewing the documentation, I noticed that the highlighted lines in the code snippet were incorrect.
Is this related to an existing documentation section?
How can we improve?
To improve the experience, ensuring that the highlighted lines in code snippets accurately reflect the relevant lines would enhance clarity and correctness in the documentation.
Got a suggestion in mind?
Update the highlighted lines in the file /examples/typing/src/working_with_context_function.py
to correctly reflect lines 15
, 22
, and 23
while context.get_remaining_time_in_millis() > limit_execution: |
powertools-lambda-python/examples/typing/src/working_with_context_function.py
Lines 22 to 23 in ca0091f
"request_id": context.aws_request_id, | |
"remaining_time": context.get_remaining_time_in_millis(), |
instead of lines
16
, 25
, and 26
comments: requests.Response = requests.get("https://jsonplaceholder.typicode.com/comments") |
powertools-lambda-python/examples/typing/src/working_with_context_function.py
Lines 25 to 26 in ca0091f
}, | |
) |
This change will ensure accuracy in the highlighted lines for clarity and correctness in the documentation.
Acknowledgment
- I understand the final update might be different from my proposed suggestion, or refused.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status