blob: 5a6700ebef53afa272efd9c3f291f49e1ab5820b (
plain)
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
32
33
34
35
36
|
# pylint: disable=invalid-name, undefined-variable, unused-variable, missing-function-docstring, missing-module-docstring
# pylint: disable=unsupported-assignment-operation, line-too-long
if f(): # [consider-ternary-expression]
x = 4
else:
x = 5
if g():
y = 3
elif h():
y = 4
else:
y = 5
def a():
if i(): # [consider-ternary-expression]
z = 4
else:
z = 5
if f():
x = 4
print(x)
else:
x = 5
if f():
x[0] = 4
else:
x = 5
if f():
x = 4
else:
y = 5
|