@@ -113,116 +113,116 @@ file:1: error: invalid syntax
1131130
114114x = 0 # type: A A
115115[out]
116- file:2: error: syntax error in type comment "A A"
116+ file:2: error: Syntax error in type comment "A A"
117117
118118[case testInvalidTypeComment2]
1191190
120120x = 0 # type: A[
121121[out]
122- file:2: error: syntax error in type comment "A["
122+ file:2: error: Syntax error in type comment "A["
123123
124124[case testInvalidTypeComment3]
1251250
126126x = 0 # type:
127127[out]
128- file:2: error: syntax error in type comment ""
128+ file:2: error: Syntax error in type comment ""
129129
130130[case testInvalidTypeComment4]
1311310
132132x = 0 # type: *
133133[out]
134- file:2: error: syntax error in type comment "*"
134+ file:2: error: Syntax error in type comment "*"
135135
136136[case testInvalidTypeComment5]
1371370
138138x = 0 # type:# some comment
139139[out]
140- file:2: error: syntax error in type comment ""
140+ file:2: error: Syntax error in type comment ""
141141
142142[case testInvalidTypeComment6]
1431430
144144x = 0 # type: *# comment #6
145145[out]
146- file:2: error: syntax error in type comment "*"
146+ file:2: error: Syntax error in type comment "*"
147147
148148[case testInvalidTypeComment7]
1491490
150150x = 0 # type: A B #comment #7
151151[out]
152- file:2: error: syntax error in type comment "A B"
152+ file:2: error: Syntax error in type comment "A B"
153153
154154[case testInvalidSignatureInComment1]
155155def f(): # type: x
156156 pass
157157[out]
158- file:1: error: syntax error in type comment "x"
158+ file:1: error: Syntax error in type comment "x"
159159file:1: note: Suggestion: wrap argument types in parentheses
160160
161161[case testInvalidSignatureInComment2]
162162def f(): # type:
163163 pass
164164[out]
165- file:1: error: syntax error in type comment ""
165+ file:1: error: Syntax error in type comment ""
166166
167167[case testInvalidSignatureInComment3]
168168def f(): # type: (
169169 pass
170170[out]
171- file:1: error: syntax error in type comment "("
171+ file:1: error: Syntax error in type comment "("
172172
173173[case testInvalidSignatureInComment4]
174174def f(): # type: (.
175175 pass
176176[out]
177- file:1: error: syntax error in type comment "(."
177+ file:1: error: Syntax error in type comment "(."
178178
179179[case testInvalidSignatureInComment5]
180180def f(): # type: (x
181181 pass
182182[out]
183- file:1: error: syntax error in type comment "(x"
183+ file:1: error: Syntax error in type comment "(x"
184184
185185[case testInvalidSignatureInComment6]
186186def f(): # type: (x)
187187 pass
188188[out]
189- file:1: error: syntax error in type comment "(x)"
189+ file:1: error: Syntax error in type comment "(x)"
190190
191191[case testInvalidSignatureInComment7]
192192def f(): # type: (x) -
193193 pass
194194[out]
195- file:1: error: syntax error in type comment "(x) -"
195+ file:1: error: Syntax error in type comment "(x) -"
196196
197197[case testInvalidSignatureInComment8]
198198def f(): # type: (x) ->
199199 pass
200200[out]
201- file:1: error: syntax error in type comment "(x) ->"
201+ file:1: error: Syntax error in type comment "(x) ->"
202202
203203[case testInvalidSignatureInComment9]
204204def f(): # type: (x) -> .
205205 pass
206206[out]
207- file:1: error: syntax error in type comment "(x) -> ."
207+ file:1: error: Syntax error in type comment "(x) -> ."
208208
209209[case testInvalidSignatureInComment10]
210210def f(): # type: (x) -> x x
211211 pass
212212[out]
213- file:1: error: syntax error in type comment "(x) -> x x"
213+ file:1: error: Syntax error in type comment "(x) -> x x"
214214
215215[case testInvalidSignatureInComment11]
216216def f(): # type: # abc comment
217217 pass
218218[out]
219- file:1: error: syntax error in type comment ""
219+ file:1: error: Syntax error in type comment ""
220220
221221[case testInvalidSignatureInComment12]
222222def f(): # type: (x) -> x x # comment #2
223223 pass
224224[out]
225- file:1: error: syntax error in type comment "(x) -> x x"
225+ file:1: error: Syntax error in type comment "(x) -> x x"
226226
227227
228228[case testDuplicateSignatures1]
@@ -269,7 +269,7 @@ def g(*x, **y): # type: (*X, *Y) -> Z
269269 pass
270270[out]
271271file:1: error: Inconsistent use of "*" in function signature
272- file:3: error: syntax error in type comment
272+ file:3: error: Syntax error in type comment
273273file:3: error: Inconsistent use of "*" in function signature
274274file:3: error: Inconsistent use of "**" in function signature
275275
0 commit comments