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

Add '.vim/bundle/black/' from commit '2f3fa1f6d0cbc2a3f31c7440c422da173b068e7b'
[etc/vim.git] / .vim / bundle / black / tests / data / docstring_no_string_normalization.py
1 class ALonelyClass:
2     '''
3     A multiline class docstring.
4     '''
5     def AnEquallyLonelyMethod(self):
6         '''
7         A multiline method docstring'''
8         pass
9
10
11 def one_function():
12     '''This is a docstring with a single line of text.'''
13     pass
14
15
16 def shockingly_the_quotes_are_normalized():
17     '''This is a multiline docstring.
18     This is a multiline docstring.
19     This is a multiline docstring.
20     '''
21     pass
22
23
24 def foo():
25   """This is a docstring with             
26   some lines of text here
27   """
28   return
29
30
31 def baz():
32   '''"This" is a string with some
33   embedded "quotes"'''
34   return
35
36
37 def poit():
38   """
39   Lorem ipsum dolor sit amet.       
40
41   Consectetur adipiscing elit:
42    - sed do eiusmod tempor incididunt ut labore
43    - dolore magna aliqua
44      - enim ad minim veniam
45      - quis nostrud exercitation ullamco laboris nisi
46    - aliquip ex ea commodo consequat
47   """
48   pass
49
50
51 def under_indent():
52   """
53   These lines are indented in a way that does not
54 make sense.
55   """
56   pass
57
58
59 def over_indent():
60   """
61   This has a shallow indent
62     - But some lines are deeper
63     - And the closing quote is too deep
64     """
65   pass
66
67
68 def single_line():
69     """But with a newline after it!
70
71     """
72     pass
73
74
75 def this():
76     r"""
77     'hey ho'
78     """
79
80
81 def that():
82   """ "hey yah" """
83
84
85 def and_that():
86   """
87   "hey yah" """
88
89
90 def and_this():
91   ''' 
92   "hey yah"'''
93
94
95 def believe_it_or_not_this_is_in_the_py_stdlib(): ''' 
96 "hey yah"'''
97
98
99 def shockingly_the_quotes_are_normalized_v2():
100     '''
101     Docstring Docstring Docstring
102     '''
103     pass
104
105
106 def backslash_space():
107     '\ '
108
109
110 def multiline_backslash_1():
111   '''
112   hey\there\
113   \ '''
114
115
116 def multiline_backslash_2():
117   '''
118   hey there \ '''
119
120
121 def multiline_backslash_3():
122   '''
123   already escaped \\ '''
124
125 # output
126
127 class ALonelyClass:
128     '''
129     A multiline class docstring.
130     '''
131
132     def AnEquallyLonelyMethod(self):
133         '''
134         A multiline method docstring'''
135         pass
136
137
138 def one_function():
139     '''This is a docstring with a single line of text.'''
140     pass
141
142
143 def shockingly_the_quotes_are_normalized():
144     '''This is a multiline docstring.
145     This is a multiline docstring.
146     This is a multiline docstring.
147     '''
148     pass
149
150
151 def foo():
152     """This is a docstring with
153     some lines of text here
154     """
155     return
156
157
158 def baz():
159     '''"This" is a string with some
160     embedded "quotes"'''
161     return
162
163
164 def poit():
165     """
166     Lorem ipsum dolor sit amet.
167
168     Consectetur adipiscing elit:
169      - sed do eiusmod tempor incididunt ut labore
170      - dolore magna aliqua
171        - enim ad minim veniam
172        - quis nostrud exercitation ullamco laboris nisi
173      - aliquip ex ea commodo consequat
174     """
175     pass
176
177
178 def under_indent():
179     """
180       These lines are indented in a way that does not
181     make sense.
182     """
183     pass
184
185
186 def over_indent():
187     """
188     This has a shallow indent
189       - But some lines are deeper
190       - And the closing quote is too deep
191     """
192     pass
193
194
195 def single_line():
196     """But with a newline after it!"""
197     pass
198
199
200 def this():
201     r"""
202     'hey ho'
203     """
204
205
206 def that():
207     """ "hey yah" """
208
209
210 def and_that():
211     """
212     "hey yah" """
213
214
215 def and_this():
216     '''
217     "hey yah"'''
218
219
220 def believe_it_or_not_this_is_in_the_py_stdlib():
221     '''
222     "hey yah"'''
223
224
225 def shockingly_the_quotes_are_normalized_v2():
226     '''
227     Docstring Docstring Docstring
228     '''
229     pass
230
231
232 def backslash_space():
233     '\ '
234
235
236 def multiline_backslash_1():
237     '''
238   hey\there\
239   \ '''
240
241
242 def multiline_backslash_2():
243     '''
244     hey there \ '''
245
246
247 def multiline_backslash_3():
248     '''
249     already escaped \\'''