Skip to content

Docs: Incorrect Highlighted Lines in Documentation #4117

Closed
@Emerson-MM-Filho

Description

@Emerson-MM-Filho

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?

https://docs.powertools.aws.dev/lambda/python/latest/utilities/typing/#working-with-context-methods-and-properties

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:

"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")

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

documentationImprovements or additions to documentation

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions