Skip to content

string_processing: reformats to exceed line length and is also ugly #3409

@hauntsaninja

Description

@hauntsaninja

Describe the bug

class X:
    def f(self):
        assert remove_color_code(output) == (
            "error: not checking stubs due to mypy build errors:\n{}.pyi:2: "
            'error: Name "f" already defined'.format(TEST_MODULE_NAME)
        )

becomes

class X:
    def f(self):
        assert remove_color_code(
            output
        ) == 'error: not checking stubs due to mypy build errors:\n{}.pyi:2: error: Name "f" already defined'.format(
            TEST_MODULE_NAME
        )

To Reproduce

https://black.vercel.app/?version=stable&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4AFUAOhdAD2IimZxl1N_WlXnON2nzOppwr25x6K7LX-haAogIhxGb4PloNaKBxiGhkph9uCIP-uBHc9zuUpEFB2EqKtZlH9Qcu1YPXoyRVRZJoFE4NfErqm5K06LMTNZ0x46NAekz32iL_dN5dSVXAu4oUp_djQW18JqPH9Lfe9MWMGCklsT1X88jHOIY3pCEd_mthlSdZpPRvlRq0NS1JiqWhmL7d7OC7DBURK8XJrN090pbRqTOEiAZzzrm22PVGyWw3yhC56L6xZ4auV8QbwrDEAP5wPdmm7jih-Bbzczo-Wl3T8O4vtK9UORywAACHptDmJF55gAAYQC1QIAALZMui6xxGf7AgAAAAAEWVo=

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: preview styleIssues with the preview and unstable style. Add the name of the responsible feature in the title.F: stringsRelated to our handling of stringsT: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions