Skip to content

Too many arguments with specific argument after *args #14648

@tierriminator

Description

@tierriminator

Bug Report

When using specific arguments after providing arguments with *args, mypy will report an error.

To Reproduce

https://mypy-play.net/?mypy=latest&python=3.11&gist=f8b653e4348ebc7a4006c2a126ed0d85

Expected Behavior

Mypy should succeed.

Actual Behavior

main.py:5: error: Too many arguments for "foo"  [call-arg]
Found 1 error in 1 file (checked 1 source file)

Your Environment

See playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-callsFunction calls, *args, **kwargs, defaults

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions