Skip to content

Utilities -> Parser -> event_parser-decorator -> Unused Import in Example Code #748

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

Closed
ghost opened this issue Oct 7, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Oct 7, 2021

What were you initially searching for in the docs?
I was trying to understand how to implement @event_parser decorator.

Is this related to an existing part of the documentation? Please share a link
https://awslabs.github.io/aws-lambda-powertools-python/latest/utilities/parser/#event_parser-decorator

Describe how we could make it clearer
The example provided imports the ValidationError, but that error is unused in the example. The ValidationError is only used in the parse function example.

If you have a proposed update, please share it here
Remove the unused ValidationError from the import statement in the event_parser decorator example

@ghost ghost added the documentation Improvements or additions to documentation label Oct 7, 2021
@heitorlessa
Copy link
Contributor

Closing as this will be available in today's release docs; already available in staging docs. Thanks a lot again for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant