-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
needs-decisionAwaiting a decision from a maintainerAwaiting a decision from a maintainerquestionAsking for support or clarificationAsking for support or clarificationruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
As @harahu mentioned in #14535 (comment), most pep8-naming rules don't apply for third-party stubs
- But relevant rules could be made to apply to names decorated with
@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,N817are probably fine in stubs, as long as the name isn't re-exported (in__all__,foo as fooorvar = var)
Ruff: 0.8.5
(this report is extracted from #14535 (comment) for ease of tracking and discussion)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-decisionAwaiting a decision from a maintainerAwaiting a decision from a maintainerquestionAsking for support or clarificationAsking for support or clarificationruleImplementing or modifying a lint ruleImplementing or modifying a lint rule