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

Is there a way to represent an empty tuple type? #4211

Closed
leandropls opened this issue Nov 6, 2017 · 4 comments
Closed

Is there a way to represent an empty tuple type? #4211

leandropls opened this issue Nov 6, 2017 · 4 comments

Comments

@leandropls
Copy link

leandropls commented Nov 6, 2017

logging.handlers.SMTPHandler arg secure accepts something like this:

Union[EmptyTuple, Tuple[str], Tuple[str, str]]

Is there a way to define the EmptyTuple part?

@elazarg
Copy link
Contributor

elazarg commented Nov 6, 2017

Should be Tuple[()]

@leandropls
Copy link
Author

@elazarg thanks!

@emmatyping
Copy link
Collaborator

I did not find any documentation of this, so it would be nice to add that.

@emmatyping emmatyping reopened this Nov 6, 2017
@gvanrossum
Copy link
Member

gvanrossum commented Nov 7, 2017 via email

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

No branches or pull requests

5 participants