KEMBAR78
Suggest spurious trailing commas as a cause for invalid tuple types by msullivan · Pull Request #4336 · python/mypy · GitHub
Skip to content

Conversation

msullivan
Copy link
Collaborator

Fixes #4172

This will generate the suggestion in some situations where it is probably not the right thing, unfortunately. (Like when the tuple type is wrapped in parens). That isn't wrong, since this is only a suggestion, but I don't have a good intuition for how likely those cases are.

@gvanrossum gvanrossum merged commit 38afbd2 into master Dec 7, 2017
@gvanrossum gvanrossum deleted the trailing_comma branch December 7, 2017 23:19
@gvanrossum
Copy link
Member

Short and simple. I like it!

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.

2 participants