Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ninjawithaneedle opened this issue Apr 19, 2017 · 1 comment
Closed

Comments

@ninjawithaneedle
Copy link

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.

@JukkaL
Copy link
Contributor

JukkaL commented Apr 19, 2017

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

@JukkaL JukkaL closed this as completed Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants