1
1
-- -
2
2
source : crates / ruff_linter / src / rules / pyupgrade / mod .rs
3
3
-- -
4
- UP037 .py :18 :14 : UP037 [* ] Remove quotes from type annotation
4
+ UP037_0 .py :18 :14 : UP037 [* ] Remove quotes from type annotation
5
5
|
6
6
18 | def foo (var : " MyClass" ) -> " MyClass" :
7
7
| ^^^^^^^^^ UP037
@@ -19,7 +19,7 @@ UP037.py:18:14: UP037 [*] Remove quotes from type annotation
19
19
20 20 |
20
20
21 21 |
21
21
22
- UP037 .py :18 :28 : UP037 [* ] Remove quotes from type annotation
22
+ UP037_0 .py :18 :28 : UP037 [* ] Remove quotes from type annotation
23
23
|
24
24
18 | def foo (var : " MyClass" ) -> " MyClass" :
25
25
| ^^^^^^^^^ UP037
@@ -37,7 +37,7 @@ UP037.py:18:28: UP037 [*] Remove quotes from type annotation
37
37
20 20 |
38
38
21 21 |
39
39
40
- UP037 .py :19 :8 : UP037 [* ] Remove quotes from type annotation
40
+ UP037_0 .py :19 :8 : UP037 [* ] Remove quotes from type annotation
41
41
|
42
42
18 | def foo (var : " MyClass" ) -> " MyClass" :
43
43
19 | x : " MyClass"
@@ -55,7 +55,7 @@ UP037.py:19:8: UP037 [*] Remove quotes from type annotation
55
55
21 21 |
56
56
22 22 | def foo (*, inplace : " bool" ):
57
57
58
- UP037 .py :22 :21 : UP037 [*] Remove quotes from type annotation
58
+ UP037_0 .py :22 :21 : UP037 [*] Remove quotes from type annotation
59
59
|
60
60
22 | def foo (*, inplace : " bool" ):
61
61
| ^^^^^^ UP037
@@ -73,7 +73,7 @@ UP037.py:22:21: UP037 [*] Remove quotes from type annotation
73
73
24 24 |
74
74
25 25 |
75
75
76
- UP037 .py :26 :16 : UP037 [*] Remove quotes from type annotation
76
+ UP037_0 .py :26 :16 : UP037 [*] Remove quotes from type annotation
77
77
|
78
78
26 | def foo (*args : " str" , **kwargs : " int" ):
79
79
| ^^^^^ UP037
@@ -91,7 +91,7 @@ UP037.py:26:16: UP037 [*] Remove quotes from type annotation
91
91
28 28 |
92
92
29 29 |
93
93
94
- UP037 .py :26 :33 : UP037 [*] Remove quotes from type annotation
94
+ UP037_0 .py :26 :33 : UP037 [*] Remove quotes from type annotation
95
95
|
96
96
26 | def foo (*args : " str" , **kwargs : " int" ):
97
97
| ^^^^^ UP037
@@ -109,7 +109,7 @@ UP037.py:26:33: UP037 [*] Remove quotes from type annotation
109
109
28 28 |
110
110
29 29 |
111
111
112
- UP037 .py :30 :10 : UP037 [*] Remove quotes from type annotation
112
+ UP037_0 .py :30 :10 : UP037 [*] Remove quotes from type annotation
113
113
|
114
114
30 | x : Tuple [" MyClass" ]
115
115
| ^^^^^^^^^ UP037
@@ -128,7 +128,7 @@ UP037.py:30:10: UP037 [*] Remove quotes from type annotation
128
128
32 32 | x : Callable [[" MyClass" ], None ]
129
129
33 33 |
130
130
131
- UP037 .py :32 :14 : UP037 [*] Remove quotes from type annotation
131
+ UP037_0 .py :32 :14 : UP037 [*] Remove quotes from type annotation
132
132
|
133
133
30 | x : Tuple [" MyClass" ]
134
134
31 |
@@ -147,7 +147,7 @@ UP037.py:32:14: UP037 [*] Remove quotes from type annotation
147
147
34 34 |
148
148
35 35 | class Foo (NamedTuple ):
149
149
150
- UP037 .py :36:8: UP037 [*] Remove quotes from type annotation
150
+ UP037_0 .py :36:8: UP037 [*] Remove quotes from type annotation
151
151
|
152
152
35 | class Foo (NamedTuple ):
153
153
36 | x : "MyClass "
@@ -165,7 +165,7 @@ UP037.py:36:8: UP037 [*] Remove quotes from type annotation
165
165
38 38 |
166
166
39 39 | class D (TypedDict ):
167
167
168
- UP037 .py :40:27: UP037 [*] Remove quotes from type annotation
168
+ UP037_0 .py :40:27: UP037 [*] Remove quotes from type annotation
169
169
|
170
170
39 | class D (TypedDict ):
171
171
40 | E : TypedDict ("E ", foo ="int ", total =False )
@@ -183,7 +183,7 @@ UP037.py:40:27: UP037 [*] Remove quotes from type annotation
183
183
42 42 |
184
184
43 43 | class D (TypedDict ):
185
185
186
- UP037 .py :44:31: UP037 [*] Remove quotes from type annotation
186
+ UP037_0 .py :44:31: UP037 [*] Remove quotes from type annotation
187
187
|
188
188
43 | class D (TypedDict ):
189
189
44 | E : TypedDict ("E ", {" foo" : " int" })
@@ -201,7 +201,7 @@ UP037.py:44:31: UP037 [*] Remove quotes from type annotation
201
201
46 46 |
202
202
47 47 | x : Annotated [" str" , " metadata" ]
203
203
204
- UP037 .py :47 :14 : UP037 [* ] Remove quotes from type annotation
204
+ UP037_0 .py :47 :14 : UP037 [* ] Remove quotes from type annotation
205
205
|
206
206
47 | x : Annotated [" str" , " metadata" ]
207
207
| ^^^^^ UP037
@@ -220,7 +220,7 @@ UP037.py:47:14: UP037 [*] Remove quotes from type annotation
220
220
49 49 | x : Arg (" str" , " name" )
221
221
50 50 |
222
222
223
- UP037 .py :49 :8 : UP037 [*] Remove quotes from type annotation
223
+ UP037_0 .py :49 :8 : UP037 [*] Remove quotes from type annotation
224
224
|
225
225
47 | x : Annotated [" str" , " metadata" ]
226
226
48 |
@@ -241,7 +241,7 @@ UP037.py:49:8: UP037 [*] Remove quotes from type annotation
241
241
51 51 | x : DefaultArg (" str" , " name" )
242
242
52 52 |
243
243
244
- UP037 .py :51 :15 : UP037 [*] Remove quotes from type annotation
244
+ UP037_0 .py :51 :15 : UP037 [*] Remove quotes from type annotation
245
245
|
246
246
49 | x : Arg (" str" , " name" )
247
247
50 |
@@ -262,7 +262,7 @@ UP037.py:51:15: UP037 [*] Remove quotes from type annotation
262
262
53 53 | x : NamedArg (" str" , " name" )
263
263
54 54 |
264
264
265
- UP037 .py :53 :13 : UP037 [*] Remove quotes from type annotation
265
+ UP037_0 .py :53 :13 : UP037 [*] Remove quotes from type annotation
266
266
|
267
267
51 | x : DefaultArg (" str" , " name" )
268
268
52 |
@@ -283,7 +283,7 @@ UP037.py:53:13: UP037 [*] Remove quotes from type annotation
283
283
55 55 | x : DefaultNamedArg (" str" , " name" )
284
284
56 56 |
285
285
286
- UP037 .py :55 :20 : UP037 [*] Remove quotes from type annotation
286
+ UP037_0 .py :55 :20 : UP037 [*] Remove quotes from type annotation
287
287
|
288
288
53 | x : NamedArg (" str" , " name" )
289
289
54 |
@@ -304,7 +304,7 @@ UP037.py:55:20: UP037 [*] Remove quotes from type annotation
304
304
57 57 | x : DefaultNamedArg (" str" , name =" name" )
305
305
58 58 |
306
306
307
- UP037 .py :57 :20 : UP037 [*] Remove quotes from type annotation
307
+ UP037_0 .py :57 :20 : UP037 [*] Remove quotes from type annotation
308
308
|
309
309
55 | x : DefaultNamedArg (" str" , " name" )
310
310
56 |
@@ -325,7 +325,7 @@ UP037.py:57:20: UP037 [*] Remove quotes from type annotation
325
325
59 59 | x : VarArg (" str" )
326
326
60 60 |
327
327
328
- UP037 .py :59 :11 : UP037 [*] Remove quotes from type annotation
328
+ UP037_0 .py :59 :11 : UP037 [*] Remove quotes from type annotation
329
329
|
330
330
57 | x : DefaultNamedArg (" str" , name =" name" )
331
331
58 |
@@ -346,7 +346,7 @@ UP037.py:59:11: UP037 [*] Remove quotes from type annotation
346
346
61 61 | x : List [List [List [" MyClass" ]]]
347
347
62 62 |
348
348
349
- UP037 .py :61 :19 : UP037 [*] Remove quotes from type annotation
349
+ UP037_0 .py :61 :19 : UP037 [*] Remove quotes from type annotation
350
350
|
351
351
59 | x : VarArg (" str" )
352
352
60 |
@@ -367,7 +367,7 @@ UP037.py:61:19: UP037 [*] Remove quotes from type annotation
367
367
63 63 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
368
368
64 64 |
369
369
370
- UP037 .py :63 :29 : UP037 [*] Remove quotes from type annotation
370
+ UP037_0 .py :63 :29 : UP037 [*] Remove quotes from type annotation
371
371
|
372
372
61 | x : List [List [List [" MyClass" ]]]
373
373
62 |
@@ -388,7 +388,7 @@ UP037.py:63:29: UP037 [*] Remove quotes from type annotation
388
388
65 65 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
389
389
66 66 |
390
390
391
- UP037 .py :63 :45 : UP037 [*] Remove quotes from type annotation
391
+ UP037_0 .py :63 :45 : UP037 [*] Remove quotes from type annotation
392
392
|
393
393
61 | x : List [List [List [" MyClass" ]]]
394
394
62 |
@@ -409,7 +409,7 @@ UP037.py:63:45: UP037 [*] Remove quotes from type annotation
409
409
65 65 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
410
410
66 66 |
411
411
412
- UP037 .py :65 :29 : UP037 [*] Remove quotes from type annotation
412
+ UP037_0 .py :65 :29 : UP037 [*] Remove quotes from type annotation
413
413
|
414
414
63 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
415
415
64 |
@@ -430,7 +430,7 @@ UP037.py:65:29: UP037 [*] Remove quotes from type annotation
430
430
67 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
431
431
68 68 |
432
432
433
- UP037 .py :65 :36 : UP037 [*] Remove quotes from type annotation
433
+ UP037_0 .py :65 :36 : UP037 [*] Remove quotes from type annotation
434
434
|
435
435
63 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
436
436
64 |
@@ -451,7 +451,7 @@ UP037.py:65:36: UP037 [*] Remove quotes from type annotation
451
451
67 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
452
452
68 68 |
453
453
454
- UP037 .py :65 :45 : UP037 [*] Remove quotes from type annotation
454
+ UP037_0 .py :65 :45 : UP037 [*] Remove quotes from type annotation
455
455
|
456
456
63 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
457
457
64 |
@@ -472,7 +472,7 @@ UP037.py:65:45: UP037 [*] Remove quotes from type annotation
472
472
67 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
473
473
68 68 |
474
474
475
- UP037 .py :65 :52 : UP037 [*] Remove quotes from type annotation
475
+ UP037_0 .py :65 :52 : UP037 [*] Remove quotes from type annotation
476
476
|
477
477
63 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
478
478
64 |
@@ -493,7 +493,7 @@ UP037.py:65:52: UP037 [*] Remove quotes from type annotation
493
493
67 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
494
494
68 68 |
495
495
496
- UP037 .py :67 :24 : UP037 [*] Remove quotes from type annotation
496
+ UP037_0 .py :67 :24 : UP037 [*] Remove quotes from type annotation
497
497
|
498
498
65 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
499
499
66 |
@@ -514,7 +514,7 @@ UP037.py:67:24: UP037 [*] Remove quotes from type annotation
514
514
69 69 | X : MyCallable (" X" )
515
515
70 70 |
516
516
517
- UP037 .py :67 :38 : UP037 [*] Remove quotes from type annotation
517
+ UP037_0 .py :67 :38 : UP037 [*] Remove quotes from type annotation
518
518
|
519
519
65 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
520
520
66 |
@@ -535,7 +535,7 @@ UP037.py:67:38: UP037 [*] Remove quotes from type annotation
535
535
69 69 | X : MyCallable (" X" )
536
536
70 70 |
537
537
538
- UP037 .py :67 :45 : UP037 [*] Remove quotes from type annotation
538
+ UP037_0 .py :67 :45 : UP037 [*] Remove quotes from type annotation
539
539
|
540
540
65 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
541
541
66 |
@@ -554,6 +554,4 @@ UP037.py:67:45: UP037 [*] Remove quotes from type annotation
554
554
67 | +x : NamedTuple (typename = " X" , fields = [(" foo" , int )])
555
555
68 68 |
556
556
69 69 | X : MyCallable (" X" )
557
- 70 70 |
558
-
559
-
557
+ 70 70 |
0 commit comments