unused-private-type-alias (PYI047)#
Derived from the flake8-pyi linter.
What it does#
Checks for the presence of unused private typing.TypeAlias
definitions.
Why is this bad?#
A private typing.TypeAlias
that is defined but not used is likely a
mistake, and should either be used, made public, or removed to avoid
confusion.
Example#
Use instead: