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

Strange linebreak #1863

Closed
keli opened this issue Dec 10, 2020 · 1 comment
Closed

Strange linebreak #1863

keli opened this issue Dec 10, 2020 · 1 comment
Labels
F: linebreak How should we split up lines? R: duplicate This issue or pull request already exists T: bug Something isn't working T: style What do we want Blackened code to look like?

Comments

@keli
Copy link

keli commented Dec 10, 2020

I suppose this is a bug. Take the following code:

if (self.rotation_days > 1 and default_ratio < self.default_ratio) or target.attrs[0].subattr.expiry not in expiries:
    pass

And black formatted output became:

if (self.rotation_days > 1 and default_ratio < self.default_ratio) or target.attrs[
    0
].subattr.expiry not in expiries:
    pass
  • Version: master
  • OS and Python version: Mac/Python 3.6.3/3.8.2
@keli keli added the T: bug Something isn't working label Dec 10, 2020
@JelleZijlstra JelleZijlstra added T: style What do we want Blackened code to look like? F: linebreak How should we split up lines? labels May 30, 2021
@JelleZijlstra
Copy link
Collaborator

Duplicate of #236

@JelleZijlstra JelleZijlstra marked this as a duplicate of #236 Jan 29, 2022
@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label Jan 29, 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? R: duplicate This issue or pull request already exists T: bug Something isn't working T: style What do we want Blackened code to look like?
Projects
None yet
Development

No branches or pull requests

3 participants