We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1455ae4 commit e58baf1Copy full SHA for e58baf1
tests/data/cases/prefer_rhs_split_reformatted.py
@@ -11,6 +11,14 @@
11
# exactly line length limit + 1, it won't be split like that.
12
xxxxxxxxx_yyy_zzzzzzzz[xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)] = 1
13
14
+# Regression test for #1187
15
+print(
16
+ dict(
17
+ a=1,
18
+ b=2 if some_kind_of_data is not None else some_other_kind_of_data, # some explanation of why this is actually necessary
19
+ c=3,
20
+ )
21
+)
22
23
# output
24
@@ -36,3 +44,14 @@
36
44
xxxxxxxxx_yyy_zzzzzzzz[
37
45
xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)
38
46
] = 1
47
+
48
49
50
51
52
+ b=(
53
+ 2 if some_kind_of_data is not None else some_other_kind_of_data
54
+ ), # some explanation of why this is actually necessary
55
56
57
0 commit comments