Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Confusing message when missing positional argument #3963

@JukkaL

Description

@JukkaL

The error message generated for this example is confusing, since only c is missing:

def f(a, b, c, d=None) -> None:
    pass

f(1, 2, d=3)  # Missing positional arguments "a", "b", "c" in call to "f"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions