Check arguments in calls [call-arg]
Mypy expects that the number and names of arguments match the called function.Note that argument type checks have a separate error code arg-type
.
Example:
- from typing import Sequence
- def greet(name: str) -> None:
- print('hello', name)
- greet('jack') # OK
- greet('jill', 'jack') # Error: Too many arguments for "greet" [call-arg]