Skip to content

Mapping tuple over a list of lists is being considered an error #1178

Closed

Description

@ninjawithaneedle

map(tuple, [ [2, 3] ]) throws

error: Argument 1 to "map" has incompatible type Tuple[_T_co, ...]; expected Callable[[List[int]], Tuple[_T_co, ...]]

However, this is valid python code.

Activity

  1. JukkaL commented on Apr 19, 2017

    @JukkaL
    Contributor

    This looks like a bug in mypy. Filed it as python/mypy#3193.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions