Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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])


Oh, I must have misunderstood. Sorry! I take back my issue with the slices, then.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: