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: Multi-line global #1357

Open
YodaEmbedding opened this issue Apr 23, 2020 · 0 comments
Open

Line too long: Multi-line global #1357

YodaEmbedding opened this issue Apr 23, 2020 · 0 comments
Labels
F: linetoolong Black makes our lines too long T: style What do we want Blackened code to look like?

Comments

@YodaEmbedding
Copy link

YodaEmbedding commented Apr 23, 2020

Describe the bug

Lines containing the global keyword are not properly wrapped when line length is exceeded.

To Reproduce

Input:

def f():
    global \
        analyze_featuremap_layer, \
        analyze_featuremapcompression_layer, \
        analyze_latencies_post, \
        analyze_motions_layer, \
        analyze_size_model

Output:

def f():
    global analyze_featuremap_layer, analyze_featuremapcompression_layer, analyze_latencies_post, analyze_motions_layer, analyze_size_model

Expected behavior

Output should be same as input.

Environment (please complete the following information):

  • Version: 19.10b0
  • OS and Python version: Arch Linux; Python 3.8

Does this bug also happen on master?

Yes.

Additional context

N/A.

@YodaEmbedding YodaEmbedding added the T: bug Something isn't working label Apr 23, 2020
@JelleZijlstra JelleZijlstra added F: linetoolong Black makes our lines too long T: style What do we want Blackened code to look like? and removed T: bug Something isn't working labels May 30, 2021
@JelleZijlstra JelleZijlstra changed the title Multi-line global becomes one line Line too long: Multi-line global 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: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

2 participants