News for hackers. Stuff that matters.
Re:Black: An uncompromising Python code formatter by Shish2k on Friday May 25, 2018 @06:43PM (#17158741)
> My reading of README.md is that Black inserts spaces around the colon, is that right?

I can't speak for the readme, but:

    $ cat test.py
    x = [1,2,3]
    print(x[1: 3])

    $ black test.py
    reformatted test.py

    $ cat test.py
    x = [1, 2, 3]
    print(x[1:3])
Re:Black: An uncompromising Python code formatter by zestyping on Friday May 25, 2018 @10:06PM (#17159745)
Oh, I must have misunderstood. Sorry! I take back my issue with the slices, then.