Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Document empty tuple syntax #4313

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

Merged
merged 3 commits into from
Dec 4, 2017
Merged

Conversation

emmatyping
Copy link
Member

Fixes #4211.

@JelleZijlstra
Copy link
Member

I'm not sure this belongs in the cheatsheet, since the cheatsheet is meant to be a quick reference for common types, and the type of an empty tuple is definitely not a common need. Maybe there isn't a better place for it though.

@ilevkivskyi
Copy link
Member

Maybe there isn't a better place for it though.

There is "Common issues" section. Maybe this discussion can be put there?

@JelleZijlstra
Copy link
Member

I doubt it's a common issue either. :)

Maybe it should be in https://mypy.readthedocs.io/en/latest/builtin_types.html, which is currently missing Tuple.

@gvanrossum
Copy link
Member

I think adding various forms of tuples to https://mypy.readthedocs.io/en/latest/builtin_types.html is a good idea, but I like adding this to the cheat sheets too (many people use just the cheat sheet for reference, and this is definitely an issue where everyone needs help).

@gvanrossum gvanrossum merged commit 71332d5 into python:master Dec 4, 2017
@emmatyping emmatyping deleted the emptytuple branch April 12, 2018 08:08
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

Successfully merging this pull request may close these issues.

4 participants