Skip to content

Setting only * to an empty parameter list gets a wrong error message saying "arguments" instead of "parameters" #21003

@hyperkai

Description

@hyperkai

*Notes:

  • mypy test.py
  • mypy 1.19.1
  • Python 3.15.0a6

Setting only * to an empty parameter list gets the wrong error message saying "arguments" instead of "parameters" as shown below:

       # ↓
def func(*): ... # Error

error: Named arguments must follow bare *

So, the error message should say "parameters" instead of "arguments" as shown below:

error: Named parameters must follow bare *

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions