Bug: linebreak in comparison in parens with comments in conditional is not stable #638
Labels
C: invalid code
Black destroyed a valid Python file
F: comments
The syntactic kind. Not in the language grammar, always on our minds. Best bugs.
T: bug
Something isn't working
Hypothesis is planning to adopt Black (HypothesisWorks/hypothesis#1686), but I noticed a weird linebreak when a condition follows a comment. Originally this was in this example, but the simple repro is as follows:
Operating system: Windows
Python version: 3.6.5
Black version: 18.9b0
Does also happen on master: yes, commit 0b40a7
(and thanks so much to everyone contributing to Black - it's made Python development noticeably more fun by taking formatting entirely out of my brain 😍)
The text was updated successfully, but these errors were encountered: