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

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

Open
hauntsaninja opened this issue Dec 9, 2022 · 0 comments
Open
Labels
C: preview style Issues with the preview and unstable style. Add the name of the responsible feature in the title. F: strings Related to our handling of strings T: bug Something isn't working

Comments

@hauntsaninja
Copy link
Collaborator

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=

@hauntsaninja hauntsaninja added the T: bug Something isn't working label Dec 9, 2022
@JelleZijlstra JelleZijlstra added the C: preview style Issues with the preview and unstable style. Add the name of the responsible feature in the title. label Dec 19, 2022
@hauntsaninja hauntsaninja added the F: strings Related to our handling of strings label Sep 3, 2023
@JelleZijlstra JelleZijlstra changed the title --preview reformats to exceed line length and is also ugly string_processing: reformats to exceed line length and is also ugly Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: preview style Issues with the preview and unstable style. Add the name of the responsible feature in the title. F: strings Related to our handling of strings T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants