mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-26 14:29:05 +08:00
287 B
287 B
What it does
Checks for calls which provide more than one argument for a single parameter.
Why is this bad?
Providing multiple values for a single parameter will raise a TypeError at runtime.
Examples
def f(x: int) -> int:
return x
f(1, x=2) # error