Skip to content

Tech debt: Migrate generic type hinting to collections module #6466

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
1 of 2 tasks
leandrodamascena opened this issue Apr 15, 2025 · 2 comments
Closed
1 of 2 tasks
Assignees
Labels
tech-debt Technical Debt tasks

Comments

@leandrodamascena
Copy link
Contributor

leandrodamascena commented Apr 15, 2025

Why is this needed?

As of Python 3.9 version, it enables support for the generics syntax in all standard collections currently available in the typing module.

Types like typing.Callable is a deprecated alias for collections.abc.Callable and we need to migrate to start using standard collections for type hinting generics.

See PEP: https://peps.python.org/pep-0585/

Ruff will start checking this soon: astral-sh/ruff#17224

Which area does this relate to?

Other

Suggestion

I will create sub-issues to migrate utilities and will not create a big PR.

Acknowledgment

@leandrodamascena leandrodamascena added tech-debt Technical Debt tasks triage Pending triage from maintainers labels Apr 15, 2025
@leandrodamascena leandrodamascena changed the title Tech debt: Replace typing.Callable with collections.abc.Callable Tech debt: Migrate generic type hinting to collections module Apr 15, 2025
@leandrodamascena leandrodamascena self-assigned this Apr 15, 2025
@leandrodamascena leandrodamascena removed the triage Pending triage from maintainers label Apr 15, 2025
@leandrodamascena leandrodamascena moved this from Triage to Working on it in Powertools for AWS Lambda (Python) Apr 15, 2025
@leandrodamascena
Copy link
Contributor Author

Closed!

@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (Python) Apr 17, 2025
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@leandrodamascena leandrodamascena moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Technical Debt tasks
Projects
Status: Shipped
Development

No branches or pull requests

1 participant