Skip to content
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: Lambda in dictionary value #808

Closed
alexbecker opened this issue Apr 17, 2019 · 1 comment · Fixed by #3440
Closed

Line too long: Lambda in dictionary value #808

alexbecker opened this issue Apr 17, 2019 · 1 comment · Fixed by #3440
Labels
F: linetoolong Black makes our lines too long T: bug Something isn't working

Comments

@alexbecker
Copy link

Input (which I also think is a good format for output):

{
    "some very long dictionary key string goes here":
        lambda: some_very_long_function_name(x, y, z)
}

Output:

{
    "some very long dictionary key string goes here": lambda: some_very_long_function_name(
        x, y, z
    )
}

Note that the second line is >88 characters.

Possibly related to #781?

Operating system: Linux
Python version: 3.6.3
Black version: 19.3b0
Does also happen on master: yes

@JelleZijlstra JelleZijlstra added the T: style What do we want Blackened code to look like? label May 5, 2019
@ichard26 ichard26 added T: bug Something isn't working and removed T: style What do we want Blackened code to look like? labels May 29, 2021
@JelleZijlstra JelleZijlstra added the F: linetoolong Black makes our lines too long label May 30, 2021
@DANIELF01
Copy link

@JelleZijlstra this looks similar to to my comment: #1161 (comment). At least in the sense that line length does not see to be respected for long/odd dictionary declarations.

@JelleZijlstra JelleZijlstra changed the title Lambdas in dictionaries go over line length limits Line too long: Lambda in dictionary value Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: linetoolong Black makes our lines too long T: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants