Skip to content

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

Closed
15 of 15 issues completed
Closed
Task
15 of 15 issues completed
@leandrodamascena

Description

@leandrodamascena

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

Sub-issues

Metadata

Metadata

Labels

tech-debtTechnical Debt tasks

Type

Projects

Status

Shipped

Relationships

None yet

Development

No branches or pull requests

Issue actions