Files
openide/python/testData/formatter/continuationIndentForCollectionsAndComprehensions.py
Mikhail Golubev 9afa34305d PY-20909 Add an option that allows to use continuation indent for collection literals
This setting also applies to the corresponding comprehensions and parenthesized
generator expressions for consistency. Also, I grouped two similar options together
in settings.
2018-10-15 17:18:10 +03:00

52 lines
347 B
Python

l = [
1,
2,
3
]
lc = [
x
for x
in range(42)
if x
]
s = {
1,
2,
3
}
sc = {
x
for x
in range(42)
if x
}
t = (
1,
2,
3
)
g = (
x
for x
in range(42)
if x
)
d = {
1: True,
2: False,
3: None
}
dc = {
x: None
for x
in range(42)
if x
}