aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python/branches.py
blob: 474ec5b6314132493390524f08bf52d6c0c06a0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
a = [
    1, 2, 3]

b = [
    x + 1
    for x in range(3)]

c = [[[
    1
]]]

d = [[[
    4]]]

e = [[
    1], 2, 3]

def foo(x, y):
    pass

foo(
    a,
    b)

if (a and
    b):
    pass

if (a
        and b):
    pass