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

Is there any way to avoid __getitem__ fom #3238

Open
Opalo opened this issue Aug 25, 2022 · 1 comment
Open

Is there any way to avoid __getitem__ fom #3238

Opalo opened this issue Aug 25, 2022 · 1 comment
Labels
F: linebreak How should we split up lines? T: style What do we want Blackened code to look like?

Comments

@Opalo
Copy link

Opalo commented Aug 25, 2022

Describe the style change

Examples in the current Black style

init >> prepare[0], prepare[
        -1
    ] >> approve >> fork >> branch_start, branch_end >> join >> done

Desired style

init >> prepare[0], prepare[-1] >> approve >> fork >> branch_start, branch_end >> join >> done

Additional context
Actually I've no idea why prepare[-1] was formatted and prepare[0] not. Is there an option to avoid this kind of formatting?

@Opalo Opalo added the T: style What do we want Blackened code to look like? label Aug 25, 2022
@TomFryers
Copy link
Contributor

Related to #2920 and all the issues linked from there.

@felix-hilden felix-hilden added the F: linebreak How should we split up lines? label Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F: linebreak How should we split up lines? T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

3 participants