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

long subscript expressions #1965

Closed
kmulka-medigo opened this issue Feb 4, 2021 · 1 comment
Closed

long subscript expressions #1965

kmulka-medigo opened this issue Feb 4, 2021 · 1 comment
Labels
R: duplicate This issue or pull request already exists T: style What do we want Blackened code to look like?

Comments

@kmulka-medigo
Copy link

Describe the style change

It doesn't make sense to me that a dictionary key should go on its own line. There should be a different way to format what is below to improve readability.

Examples in the current Black style

blah = blahaoeuuisndthaoheinthoaeusnthaoeusnhoeausthnoeusnthtsthnoaeustnh["blah"][
    "blah"
]

Desired style

blah = (
    blahaoeuuisndthaoheinthoaeusnthaoeusnhoeausthnoeusnthtsthnoaeustnh["blah"]["blah"]
)

Additional context Add any other context about the problem here.

@kmulka-medigo kmulka-medigo added the T: style What do we want Blackened code to look like? label Feb 4, 2021
@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label May 30, 2021
@ichard26
Copy link
Collaborator

While the duplication in this area is absolutely ridiculous, I'll be closing this as a duplicate of #1280.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R: duplicate This issue or pull request already exists T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

2 participants