-
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
Line too long: Dictionary key-value pair #413
Comments
In the mean time, if you put the value in parentheses manually, Black will keep them. We need to figure out a way to do it nicely automatically without over-extending. |
Can confirm this still happens even with experimental string processing. Here's a playground for convenience. |
Any update on a solution for this bug? |
Any updates will be posted here! |
@felix-hilden I am running into this as well. I haven't contributed to black before, but I am thinking to contribute. I have two questions: has this been prioritized? and is this a good candidate for a first contribution? It hasn't been resolved since 2018, could be due to complexity? |
@govindrai You're welcome to give it a go! It hasn't been prioritised, and could be a hard one (based on no real info though), but we'll try to help if you create a PR draft 👍 |
This is fixed on main in preview mode:
|
Hey,
with
black, version 18.6b4
I am getting two lines within dict merged resulting in line exceeding provided limit.black --py36 --line-length 80 file
gives:
Line in question is 82 characters long.
Is that a bug or intended behaviour for dicts?
The text was updated successfully, but these errors were encountered: