-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Labels
Enhancement ✨Improvement to a componentImprovement to a componentNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation
Milestone
Description
Current problem
With R0913 too-many-arguments now including keyword arguments (#8667), the reasonable setting for max-args
is now larger, since it's not really a problem to have a dozen keyword-only arguments.
However, having a dozen positional arguments remains a poor design.
Desired solution
A new warning for too many positional arguments, with a separately configurable maximum. This would warn when there are more than a very small number of positional arguments (including positional-only arguments).
This would be in addition to the existing too-many-arguments warning.
Additional context
This has been previously suggested in comments on #8667
haukex, jacobtylerwalls, rgson, vexofp, srtucker and 6 more
Metadata
Metadata
Assignees
Labels
Enhancement ✨Improvement to a componentImprovement to a componentNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation