Allow the enforcing of some type hint practices
AdrianB-sovo opened this issue · comments
describe the request
I would like an option to enforce some coding style for the type hints.
For example:
- Enforce
dict[str, Any]
instead ofDict[str, Any]
(and all the generic types fromtyping
that are in the standard collection since 3.9). - Enforce
TypeA | TypeB
instead ofUnion[TypeA, TypeB]
.
use a plugin or formatter for it, pyupgrade helps
you'll note from the issue template that flake8 does not implement any checks