Closed IamJeffG closed 6 years ago
Hm, this doesn't repro for me on master, and I'm pretty sure it was fixed by https://github.com/prettier/plugin-python/pull/37. I'm gonna go ahead and close this out, but feel free to re-open if I'm mistaken and it still looks like an issue!
If my code is slicing a list and not specifying start or end, prettier will remove the open-ended side, i.e. the hanging colon. This results in code that executes differently (or sometimes a syntax error).
The bug doesn't happen when both start and end are given for the slice range.