calls_argument_count error

Too few arguments in a function call

When a function is called with fewer positional arguments than it has required parameters (parameters without default values), Basilisk reports a missing-argument error. Handles overloaded functions by checking all overload signatures.

Also validates constructor calls: when a class is instantiated and the metaclass __call__ passes through arguments (uses *args, **kwargs), the __new__ or __init__ method signature is checked for missing required arguments.

def func1(a: int, b: str) -> None: ...

func1()  # E: missing required arguments
func1(1)  # E: missing required argument `b`

How to handle it

Every rule is on by default — strict is the default, not a cage. You can dial calls_argument_count down per-file or per-path from your editor or pyproject.toml, or fix the code so it type-checks. See the Type System rules and the complete diagnostic reference.

Canonical URL: https://www.basilisk-python.dev/errors/calls_argument_count