Closed AdrianB-sovo closed 9 months ago
I would like an option to enforce some coding style for the type hints. For example:
dict[str, Any]
Dict[str, Any]
typing
TypeA | TypeB
Union[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
describe the request
I would like an option to enforce some coding style for the type hints. For example:
dict[str, Any]
instead ofDict[str, Any]
(and all the generic types fromtyping
that are in the standard collection since 3.9).TypeA | TypeB
instead ofUnion[TypeA, TypeB]
.