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

Cannot query length of a tuple #158

Closed
JukkaL opened this issue Feb 25, 2013 · 0 comments
Closed

Cannot query length of a tuple #158

JukkaL opened this issue Feb 25, 2013 · 0 comments
Labels
bug mypy got something wrong

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Feb 25, 2013

The following code is rejected by the type checker, even though it should be valid:

t = (1, 'x')
print(len(t)) # error
JukkaL added a commit that referenced this issue Feb 28, 2013
Cast tuple type to 'tuple'. See also issue #158.
@JukkaL JukkaL closed this as completed in 3780b0a Jul 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

1 participant