Should some (or all) pep8-naming (N)
not apply to stubs?
#15296
Labels
needs-decision
Awaiting a decision from a maintainer
question
Asking for support or clarification
rule
Implementing or modifying a lint rule
As @harahu mentioned in #14535 (comment), most pep8-naming rules don't apply for third-party stubs
@type_check_only
, since that's a clear signal the stub author is very likely in control of that name (there's some niche exceptions for when a class is defined inside a function, but needs to be exposed in stubs)N811
,N812
,N813
,N814
,N817
are probably fine in stubs, as long as the name isn't re-exported (in__all__
,foo as foo
orvar = var
)Ruff: 0.8.5
(this report is extracted from #14535 (comment) for ease of tracking and discussion)
The text was updated successfully, but these errors were encountered: