Skip to content

Line too long: Multi-line global #1357

@YodaEmbedding

Description

@YodaEmbedding

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    F: linetoolongBlack makes our lines too longT: styleWhat do we want Blackened code to look like?

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions