]> git.madduck.net Git - etc/vim.git/blob - tests/data/cases/class_methods_new_line.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:

Migrate mypy config to pyproject.toml (#3936)
[etc/vim.git] / tests / data / cases / class_methods_new_line.py
1 class ClassSimplest:
2     pass
3 class ClassWithSingleField:
4     a = 1
5 class ClassWithJustTheDocstring:
6     """Just a docstring."""
7 class ClassWithInit:
8     def __init__(self):
9         pass
10 class ClassWithTheDocstringAndInit:
11     """Just a docstring."""
12     def __init__(self):
13         pass
14 class ClassWithInitAndVars:
15     cls_var = 100
16     def __init__(self):
17         pass
18 class ClassWithInitAndVarsAndDocstring:
19     """Test class"""
20     cls_var = 100
21     def __init__(self):
22         pass
23 class ClassWithDecoInit:
24     @deco
25     def __init__(self):
26         pass
27 class ClassWithDecoInitAndVars:
28     cls_var = 100
29     @deco
30     def __init__(self):
31         pass
32 class ClassWithDecoInitAndVarsAndDocstring:
33     """Test class"""
34     cls_var = 100
35     @deco
36     def __init__(self):
37         pass
38 class ClassSimplestWithInner:
39     class Inner:
40         pass
41 class ClassSimplestWithInnerWithDocstring:
42     class Inner:
43         """Just a docstring."""
44         def __init__(self):
45             pass
46 class ClassWithSingleFieldWithInner:
47     a = 1
48     class Inner:
49         pass
50 class ClassWithJustTheDocstringWithInner:
51     """Just a docstring."""
52     class Inner:
53         pass
54 class ClassWithInitWithInner:
55     class Inner:
56         pass
57     def __init__(self):
58         pass
59 class ClassWithInitAndVarsWithInner:
60     cls_var = 100
61     class Inner:
62         pass
63     def __init__(self):
64         pass
65 class ClassWithInitAndVarsAndDocstringWithInner:
66     """Test class"""
67     cls_var = 100
68     class Inner:
69         pass
70     def __init__(self):
71         pass
72 class ClassWithDecoInitWithInner:
73     class Inner:
74         pass
75     @deco
76     def __init__(self):
77         pass
78 class ClassWithDecoInitAndVarsWithInner:
79     cls_var = 100
80     class Inner:
81         pass
82     @deco
83     def __init__(self):
84         pass
85 class ClassWithDecoInitAndVarsAndDocstringWithInner:
86     """Test class"""
87     cls_var = 100
88     class Inner:
89         pass
90     @deco
91     def __init__(self):
92         pass
93 class ClassWithDecoInitAndVarsAndDocstringWithInner2:
94     """Test class"""
95     class Inner:
96         pass
97     cls_var = 100
98     @deco
99     def __init__(self):
100         pass
101
102
103 # output
104
105
106 class ClassSimplest:
107     pass
108
109
110 class ClassWithSingleField:
111     a = 1
112
113
114 class ClassWithJustTheDocstring:
115     """Just a docstring."""
116
117
118 class ClassWithInit:
119     def __init__(self):
120         pass
121
122
123 class ClassWithTheDocstringAndInit:
124     """Just a docstring."""
125
126     def __init__(self):
127         pass
128
129
130 class ClassWithInitAndVars:
131     cls_var = 100
132
133     def __init__(self):
134         pass
135
136
137 class ClassWithInitAndVarsAndDocstring:
138     """Test class"""
139
140     cls_var = 100
141
142     def __init__(self):
143         pass
144
145
146 class ClassWithDecoInit:
147     @deco
148     def __init__(self):
149         pass
150
151
152 class ClassWithDecoInitAndVars:
153     cls_var = 100
154
155     @deco
156     def __init__(self):
157         pass
158
159
160 class ClassWithDecoInitAndVarsAndDocstring:
161     """Test class"""
162
163     cls_var = 100
164
165     @deco
166     def __init__(self):
167         pass
168
169
170 class ClassSimplestWithInner:
171     class Inner:
172         pass
173
174
175 class ClassSimplestWithInnerWithDocstring:
176     class Inner:
177         """Just a docstring."""
178
179         def __init__(self):
180             pass
181
182
183 class ClassWithSingleFieldWithInner:
184     a = 1
185
186     class Inner:
187         pass
188
189
190 class ClassWithJustTheDocstringWithInner:
191     """Just a docstring."""
192
193     class Inner:
194         pass
195
196
197 class ClassWithInitWithInner:
198     class Inner:
199         pass
200
201     def __init__(self):
202         pass
203
204
205 class ClassWithInitAndVarsWithInner:
206     cls_var = 100
207
208     class Inner:
209         pass
210
211     def __init__(self):
212         pass
213
214
215 class ClassWithInitAndVarsAndDocstringWithInner:
216     """Test class"""
217
218     cls_var = 100
219
220     class Inner:
221         pass
222
223     def __init__(self):
224         pass
225
226
227 class ClassWithDecoInitWithInner:
228     class Inner:
229         pass
230
231     @deco
232     def __init__(self):
233         pass
234
235
236 class ClassWithDecoInitAndVarsWithInner:
237     cls_var = 100
238
239     class Inner:
240         pass
241
242     @deco
243     def __init__(self):
244         pass
245
246
247 class ClassWithDecoInitAndVarsAndDocstringWithInner:
248     """Test class"""
249
250     cls_var = 100
251
252     class Inner:
253         pass
254
255     @deco
256     def __init__(self):
257         pass
258
259
260 class ClassWithDecoInitAndVarsAndDocstringWithInner2:
261     """Test class"""
262
263     class Inner:
264         pass
265
266     cls_var = 100
267
268     @deco
269     def __init__(self):
270         pass