Skip to content

Fast parser should warn about using ellipses with other function arguments #2704

Closed

Description

@ddfisher

For this function:

def f(x, y, z): # type: (..., int) -> None
     pass

The old parser would give the warning: Ellipses cannot accompany other argument types in function type signature., whereas the fast parser gives the less helpful Type signature has too few arguments.

The fast parser should look for ellipses args and give a special-cased better error message.

Activity

  1. self-assigned this
    on Jan 18, 2017
  2. added a commit that references this issue on Jan 23, 2017
    4afd647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions