Black: [pep8] E203:whitespace before ':'

Created on 30 May 2018  Â·  2Comments  Â·  Source: psf/black

Operating system: macOS 10.13.2
Python version: 3.6.4
Black version:
Does also happen on master: yes (I did went through the steps)

indexes = list(range(10))
values = list(range(10))
print(values[indexes[2]:])

This is formatted into print(values[indexes[2] :]) -> pep8 E203

Most helpful comment

This is discussed in the Readme and a couple of issues here on GitHub. E203
is not pep8 compliant, so it's best to ignore it.

On Wed, 30 May 2018, 11:55 Victor Schmidt, notifications@github.com wrote:

Howdy! Sorry you're having trouble. To expedite your experience,
provide some basics for me:

Operating system: macOS 10.13.2
Python version: 3.6.4
Black version:
Does also happen on master: yes (I did went through the steps)

indexes = list(range(10))
values = list(range(10))
print(values[indexes[2]:])

This is formatted into print(values[indexes[2] :]) -> pep8 E203

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ambv/black/issues/280, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEtGpol_1EeDIZuYs7i-ICGyjlHANyks5t3myvgaJpZM4US9mA
.

All 2 comments

This is discussed in the Readme and a couple of issues here on GitHub. E203
is not pep8 compliant, so it's best to ignore it.

On Wed, 30 May 2018, 11:55 Victor Schmidt, notifications@github.com wrote:

Howdy! Sorry you're having trouble. To expedite your experience,
provide some basics for me:

Operating system: macOS 10.13.2
Python version: 3.6.4
Black version:
Does also happen on master: yes (I did went through the steps)

indexes = list(range(10))
values = list(range(10))
print(values[indexes[2]:])

This is formatted into print(values[indexes[2] :]) -> pep8 E203

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ambv/black/issues/280, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEtGpol_1EeDIZuYs7i-ICGyjlHANyks5t3myvgaJpZM4US9mA
.

Also, see the very issue before yours for a more detailed explanation. This is deliberate behavior.

Was this page helpful?
0 / 5 - 0 ratings