Łukasz Langa
Łukasz Langa
I thought about this some more and I'm not sure that parentheses are the right answer here. At the same time, Black currently doesn't have *any* rule that performs additional...
What we will do is this: - we won't be changing anything when there are existing delimiters; - in the special case of implicitly concatenated strings, we will be wrapping...
Ping on this 🙏🏻 Installing ARM64 Linux is becoming quite popular now with the M1 Macs, etc. This would let me do my entire release management for Python 3.8 and...
It's a bug in B001 handling. B001 is about `except:`. It uses the AST to figure out if the `except` block's exception is "empty". An empty tuple is falsy in...
It's a bug. It stems from Black seeing that the right hand side doesn't fit in a line (it doesn't, it's a multiline string!) and tries to split the line...
I changed my mind on this. Let's special-case `with` statements with multiple context managers and use backslashes for those. Rationale: not only is it **not** possible to format this nicely...
In the spirit of documentation-driven development, this is a proposed section of the docs explaining this cop-out: ### Backslashes and context managers _Black_ dislikes backslashes and removes them on every...
Black considers multiline strings as always not fitting a single line (per definition), so it tries to break the line if possible. I agree that in this case the result...
A related case is: ``` textwrap.dedent("""\ Hello, I am a multiline string used with a common idiom """) ``` We need to fix that, too.
Note: there's a discussion on GitHub on [PR 13971](https://github.com/python/cpython/pull/13971) being a bad solution: https://github.com/python/cpython/pull/13971#issuecomment-500908198 They should be reverted (or fixed forward) for 3.8 and 3.9. I'm OK with this modifying...