Debian Codegraph @

tests/data/cases/split_delimiter_comments.py

raw
1 a = (
2 1 + # type: ignore
3 2 # type: ignore
4 )
5 a = (
6 1 # type: ignore
7 + 2 # type: ignore
8 )
9 bad_split3 = (
10 "What if we have inline comments on " # First Comment
11 "each line of a bad split? In that " # Second Comment
12 "case, we should just leave it alone." # Third Comment
13 )
14 parametrize(
15 (
16 {},
17 {},
18 ),
19 ( # foobar
20 {},
21 {},
22 ),
23 )
24
25
26
27 # output
28 a = (
29 1 # type: ignore
30 + 2 # type: ignore
31 )
32 a = (
33 1 # type: ignore
34 + 2 # type: ignore
35 )
36 bad_split3 = (
37 "What if we have inline comments on " # First Comment
38 "each line of a bad split? In that " # Second Comment
39 "case, we should just leave it alone." # Third Comment
40 )
41 parametrize(
42 (
43 {},
44 {},
45 ),
46 ( # foobar
47 {},
48 {},
49 ),
50 )
51