commit | 4e54dbbc05effbdb37fcbb7b23f3bf80465dece7 | [log] [tgz] |
---|---|---|
author | Wade Carpenter <wade@arista.com> | Tue Mar 03 15:43:19 2020 -0800 |
committer | Wade Carpenter <wade@arista.com> | Tue Mar 03 16:49:52 2020 -0800 |
tree | cd1f0568d05e7ed08568e5ca9630d9f189c3455c | |
parent | 96a07df88ff9af220de93a2f6f6f724c15bba876 [diff] |
Knob for spaces around subscript colon *SPACES_AROUND_SUBSCRIPT_COLON* Use spaces around the subscript / slice operator. For example: ```python my_list[1 : 10 : 2] ``` This Bool option (False by default) inserts spaces around colons when they're used as a subscript / slice operator. There's a potential interaction with SPACE_INSIDE_BRACKETS, so there's an extra test case in TestsForSpacesAroundSubscriptColon to verify the behaviour with both enabled.