unprefixed-type-param (PYI001)
Derived from the flake8-pyi linter.
What it does
Checks that type TypeVar
s, ParamSpec
s, and TypeVarTuple
s in stubs
have names prefixed with _
.
Why is this bad?
Prefixing type parameters with _
avoids accidentally exposing names
internal to the stub.
Example
Use instead: