Back to Ruff

Too Many Positional Arguments

crates/ty_python_semantic/resources/lint_docs/too-many-positional-arguments.md

0.15.18254 B
Original Source

What it does

Checks for calls that pass more positional arguments than the callable can accept.

Why is this bad?

Passing too many positional arguments will raise TypeError at runtime.

Example

python
def f(): ...


f("foo")  # error