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

bad-whitespace checking around dotted type hint #1430

Merged
merged 1 commit into from
Apr 27, 2017
Merged

bad-whitespace checking around dotted type hint #1430

merged 1 commit into from
Apr 27, 2017

Conversation

jmaroeder
Copy link
Contributor

Fixes #1429

Fixes / new features

  • Additional test and fix for bad-whitespace when type hint has a dot in it

@rogalski
Copy link
Contributor

Nice, thank you!

@@ -631,6 631,8 @@ def _has_valid_type_annotation(self, tokens, i):
elif token[1] == ',':
if not bracket_level:
return False
elif token[1] == '.':
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, yes, this is one possible solution. Thanks for a fix 👍

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.

Incorrect checking of whitespace with dotted type hint
4 participants