You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to pep8, "However, in a slice the colon acts like a binary operator, and should have equal amounts on either side (treating it as the operator with the lowest priority). In an extended slice, both colons must have the same amount of spacing applied. Exception: when a slice parameter is omitted, the space is omitted:"
According to pep8, "However, in a slice the colon acts like a binary operator, and should have equal amounts on either side (treating it as the operator with the lowest priority). In an extended slice, both colons must have the same amount of spacing applied. Exception: when a slice parameter is omitted, the space is omitted:"
https://peps.python.org/pep-0008/#pet-peeves
However, autopep8 seems to format colon into something like: s[i: j] == s[j: 2 * j]. Based on pep8, I think it should be: s[i : j] == s[j : 2 * j].
Your Environment
The text was updated successfully, but these errors were encountered: