Skip to content

Commit

Permalink
Merge 265d946 into d9e71a7
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Oct 10, 2019
2 parents d9e71a7 + 265d946 commit c307c9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion black.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ def contains_uncollapsable_type_comments(self) -> bool:
if leaf_id not in ignored_ids or comment_seen:
return True

comment_seen = True
comment_seen = True

return False

Expand Down
3 changes: 3 additions & 0 deletions tests/data/comments2.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def inline_comments_in_brackets_ruin_everything():
],
)

CONFIG_FILES = [CONFIG_FILE, ] + SHARED_CONFIG_FILES + USER_CONFIG_FILES # type: Final

#######################
### SECTION COMMENT ###
Expand Down Expand Up @@ -313,6 +314,8 @@ def inline_comments_in_brackets_ruin_everything():
)


CONFIG_FILES = [CONFIG_FILE] + SHARED_CONFIG_FILES + USER_CONFIG_FILES # type: Final

#######################
### SECTION COMMENT ###
#######################
Expand Down

0 comments on commit c307c9a

Please sign in to comment.