Files
openide/python/testData/formatter/spaceAfterTrailingCommaIfNoSpaceAfterCommaButWithinBracesOrBrackets.py
Mikhail Golubev 10abeaea46 PY-20392 Handle ambiguous settings for space after trailing comma in collection literals
If one has chosen to omit a space after comma in settings but still
wants a space within braces or brackets in collection literals.
2016-08-25 15:07:14 +03:00

11 lines
126 B
Python

s1 = {1, 2, 3,}
s2 = {1, }
d1 = {'foo': 1, 'bar': 2, 'baz': 3,}
d2 = {'foo': 1,}
d3 = {}
l1 = [1, 2, 3,]
l2 = [1, ]
l3 = []