mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-23 01:50:49 +08:00
283 B
283 B
What it does
Checks for keyword arguments in calls that don't match any parameter of the callable.
Why is this bad?
Providing an unknown keyword argument will raise TypeError at runtime.
Example
def f(x: int) -> int:
return x
f(x=1, y=2) # error