]> git.madduck.net Git - etc/vim.git/blob - tests/data/preview_context_managers/targeting_py39.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Actually add trailing commas to collection literals even if there are terminating...
[etc/vim.git] / tests / data / preview_context_managers / targeting_py39.py
1 with \
2      make_context_manager1() as cm1, \
3      make_context_manager2() as cm2, \
4      make_context_manager3() as cm3, \
5      make_context_manager4() as cm4 \
6 :
7     pass
8
9
10 # Leading comment
11 with \
12      make_context_manager1() as cm1, \
13      make_context_manager2(), \
14      make_context_manager3() as cm3, \
15      make_context_manager4() \
16 :
17     pass
18
19
20 with \
21      new_new_new1() as cm1, \
22      new_new_new2() \
23 :
24     pass
25
26
27 with (
28      new_new_new1() as cm1,
29      new_new_new2()
30 ):
31     pass
32
33
34 # Leading comment.
35 with (
36      # First comment.
37      new_new_new1() as cm1,
38      # Second comment.
39      new_new_new2()
40      # Last comment.
41 ):
42     pass
43
44
45 with \
46     this_is_a_very_long_call(looong_arg1=looong_value1, looong_arg2=looong_value2) as cm1, \
47     this_is_a_very_long_call(looong_arg1=looong_value1, looong_arg2=looong_value2, looong_arg3=looong_value3, looong_arg4=looong_value4) as cm2 \
48 :
49     pass
50
51
52 # output
53
54
55 with (
56     make_context_manager1() as cm1,
57     make_context_manager2() as cm2,
58     make_context_manager3() as cm3,
59     make_context_manager4() as cm4,
60 ):
61     pass
62
63
64 # Leading comment
65 with (
66     make_context_manager1() as cm1,
67     make_context_manager2(),
68     make_context_manager3() as cm3,
69     make_context_manager4(),
70 ):
71     pass
72
73
74 with new_new_new1() as cm1, new_new_new2():
75     pass
76
77
78 with new_new_new1() as cm1, new_new_new2():
79     pass
80
81
82 # Leading comment.
83 with (
84     # First comment.
85     new_new_new1() as cm1,
86     # Second comment.
87     new_new_new2(),
88     # Last comment.
89 ):
90     pass
91
92
93 with (
94     this_is_a_very_long_call(
95         looong_arg1=looong_value1, looong_arg2=looong_value2
96     ) as cm1,
97     this_is_a_very_long_call(
98         looong_arg1=looong_value1,
99         looong_arg2=looong_value2,
100         looong_arg3=looong_value3,
101         looong_arg4=looong_value4,
102     ) as cm2,
103 ):
104     pass