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

PEP 8: E203 whitespace before ':' #1803

Closed
Dipet opened this issue Nov 3, 2020 · 1 comment
Closed

PEP 8: E203 whitespace before ':' #1803

Dipet opened this issue Nov 3, 2020 · 1 comment
Labels
R: duplicate This issue or pull request already exists T: style What do we want Blackened code to look like?

Comments

@Dipet
Copy link

Dipet commented Nov 3, 2020

Black adds whitespace before : in statements like this: val[pos + 1 :]

Examples in the current Black style

def f(arr, position):
    return arr[position + 1 :]

Desired style

def f(arr, position):
    return arr[position + 1:]

Black version: version 20.8b1

@Dipet Dipet added the T: style What do we want Blackened code to look like? label Nov 3, 2020
@Dipet Dipet closed this as completed Nov 3, 2020
@av1m
Copy link

av1m commented Apr 12, 2021

For information, answer is here #1841 (comment)

@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label Apr 12, 2021
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

3 participants