-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Long key: value in a dictionary goes over line limit #847
Comments
I'm having the same issue here. This is problematic when |
I am having the same problem, if the value is too long, black is not breaking it to new lines |
Did this issue ever get resolved? I'm running into it as well. |
I recently realized this is already reported. Let's move the conversation over there Dupe of #620 |
@zsol I've commented on #620, but this looks like two separate issues (my issue is very close to @therve original issue). #620 is about black splitting lines incorrectly and making code harder to read. This issue is (in my opinion) much simpler than #620, it simply seems that given such code:
... |
If a dictionary has a key value which doesn't fit, black reformats it incorrectly. For example
is reformatted to:
I believe the first version is correct. The second one is certainly not. Possibly related to #808.
Operating system: OS X
Python version: 3.7.2
Black version: 19.3b0
Does also happen on master: yes
The text was updated successfully, but these errors were encountered: