Skip to content

PLR0913 excludes kwargs #4037

@trag1c

Description

@trag1c

...unless this is expected behavior (both Ruff and Pylint's docs never specify if this check is for positional args only).

def f(a, b, c, d, e, *, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t):
    ...


def g(a, b, c, d, e, f):
    ...
test.py:5:5: PLR0913 Too many arguments to function call (6 > 5)

If this is to be expected then I think it would be good to specify this rule is posargs only :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions