Skip to content
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

refactor(middleware_factory): add from __future__ import annotations #4941

Merged

Conversation

ericbn
Copy link
Contributor

@ericbn ericbn commented Aug 13, 2024

Issue number: #4951

Summary

Changes

Add from __future__ import annotations to middleware_factory package

User experience

Discussed in #4607

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

and update code according to ruff rules TCH, UP006, UP007, UP037 and
FA100.
@ericbn ericbn requested a review from a team as a code owner August 13, 2024 00:47
@boring-cyborg boring-cyborg bot added the middleware_factory Middleware factory utility label Aug 13, 2024
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 13, 2024
Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ericbn! What do you think about changing the examples related to Middleware Factory? I know there are dozens of files to change in all the other PRs you opened, but we can divide and conquer to make it faster. I can modify the examples and fix highlights, does that make sense?

aws_lambda_powertools/middleware_factory/factory.py Outdated Show resolved Hide resolved
@ericbn
Copy link
Contributor Author

ericbn commented Aug 13, 2024

@leandrodamascena, sure let’s divide and conquer, and you can modify the examples and highlights. Sounds great! I’ll take a look at the absolute imports soon.

@boring-cyborg boring-cyborg bot added the documentation Improvements or additions to documentation label Aug 13, 2024
@pull-request-size pull-request-size bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 13, 2024
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Aug 13, 2024
@leandrodamascena leandrodamascena force-pushed the middleware_factory_annotations branch from 5a28f8b to 9db63ef Compare August 13, 2024 16:21
@pull-request-size pull-request-size bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 13, 2024
@pull-request-size pull-request-size bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 13, 2024
Copy link

Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVED! 🥇

@leandrodamascena leandrodamascena merged commit b4195eb into aws-powertools:v3 Aug 15, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement middleware_factory Middleware factory utility size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tech debt: add from __future__ import annotations in the Middleware Factory feature
2 participants