unprefixed-type-param (PYI001)
Added in v0.0.245 · Related issues · View source
Derived from the flake8-pyi linter.
What it does
Checks that type TypeVars, ParamSpecs, and TypeVarTuples 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: