11-- -
22source : crates / ruff_linter / src / rules / pyupgrade / mod .rs
33-- -
4- UP037 .py :18 :14 : UP037 [* ] Remove quotes from type annotation
4+ UP037_0 .py :18 :14 : UP037 [* ] Remove quotes from type annotation
55 |
6618 | def foo (var : " MyClass" ) -> " MyClass" :
77 | ^^^^^^^^^ UP037
@@ -19,7 +19,7 @@ UP037.py:18:14: UP037 [*] Remove quotes from type annotation
191920 20 |
202021 21 |
2121
22- UP037 .py :18 :28 : UP037 [* ] Remove quotes from type annotation
22+ UP037_0 .py :18 :28 : UP037 [* ] Remove quotes from type annotation
2323 |
242418 | def foo (var : " MyClass" ) -> " MyClass" :
2525 | ^^^^^^^^^ UP037
@@ -37,7 +37,7 @@ UP037.py:18:28: UP037 [*] Remove quotes from type annotation
373720 20 |
383821 21 |
3939
40- UP037 .py :19 :8 : UP037 [* ] Remove quotes from type annotation
40+ UP037_0 .py :19 :8 : UP037 [* ] Remove quotes from type annotation
4141 |
424218 | def foo (var : " MyClass" ) -> " MyClass" :
434319 | x : " MyClass"
@@ -55,7 +55,7 @@ UP037.py:19:8: UP037 [*] Remove quotes from type annotation
555521 21 |
565622 22 | def foo (*, inplace : " bool" ):
5757
58- UP037 .py :22 :21 : UP037 [*] Remove quotes from type annotation
58+ UP037_0 .py :22 :21 : UP037 [*] Remove quotes from type annotation
5959 |
606022 | def foo (*, inplace : " bool" ):
6161 | ^^^^^^ UP037
@@ -73,7 +73,7 @@ UP037.py:22:21: UP037 [*] Remove quotes from type annotation
737324 24 |
747425 25 |
7575
76- UP037 .py :26 :16 : UP037 [*] Remove quotes from type annotation
76+ UP037_0 .py :26 :16 : UP037 [*] Remove quotes from type annotation
7777 |
787826 | def foo (*args : " str" , **kwargs : " int" ):
7979 | ^^^^^ UP037
@@ -91,7 +91,7 @@ UP037.py:26:16: UP037 [*] Remove quotes from type annotation
919128 28 |
929229 29 |
9393
94- UP037 .py :26 :33 : UP037 [*] Remove quotes from type annotation
94+ UP037_0 .py :26 :33 : UP037 [*] Remove quotes from type annotation
9595 |
969626 | def foo (*args : " str" , **kwargs : " int" ):
9797 | ^^^^^ UP037
@@ -109,7 +109,7 @@ UP037.py:26:33: UP037 [*] Remove quotes from type annotation
10910928 28 |
11011029 29 |
111111
112- UP037 .py :30 :10 : UP037 [*] Remove quotes from type annotation
112+ UP037_0 .py :30 :10 : UP037 [*] Remove quotes from type annotation
113113 |
11411430 | x : Tuple [" MyClass" ]
115115 | ^^^^^^^^^ UP037
@@ -128,7 +128,7 @@ UP037.py:30:10: UP037 [*] Remove quotes from type annotation
12812832 32 | x : Callable [[" MyClass" ], None ]
12912933 33 |
130130
131- UP037 .py :32 :14 : UP037 [*] Remove quotes from type annotation
131+ UP037_0 .py :32 :14 : UP037 [*] Remove quotes from type annotation
132132 |
13313330 | x : Tuple [" MyClass" ]
13413431 |
@@ -147,7 +147,7 @@ UP037.py:32:14: UP037 [*] Remove quotes from type annotation
14714734 34 |
14814835 35 | class Foo (NamedTuple ):
149149
150- UP037 .py :36:8: UP037 [*] Remove quotes from type annotation
150+ UP037_0 .py :36:8: UP037 [*] Remove quotes from type annotation
151151 |
15215235 | class Foo (NamedTuple ):
15315336 | x : "MyClass "
@@ -165,7 +165,7 @@ UP037.py:36:8: UP037 [*] Remove quotes from type annotation
16516538 38 |
16616639 39 | class D (TypedDict ):
167167
168- UP037 .py :40:27: UP037 [*] Remove quotes from type annotation
168+ UP037_0 .py :40:27: UP037 [*] Remove quotes from type annotation
169169 |
17017039 | class D (TypedDict ):
17117140 | E : TypedDict ("E ", foo ="int ", total =False )
@@ -183,7 +183,7 @@ UP037.py:40:27: UP037 [*] Remove quotes from type annotation
18318342 42 |
18418443 43 | class D (TypedDict ):
185185
186- UP037 .py :44:31: UP037 [*] Remove quotes from type annotation
186+ UP037_0 .py :44:31: UP037 [*] Remove quotes from type annotation
187187 |
18818843 | class D (TypedDict ):
18918944 | E : TypedDict ("E ", {" foo" : " int" })
@@ -201,7 +201,7 @@ UP037.py:44:31: UP037 [*] Remove quotes from type annotation
20120146 46 |
20220247 47 | x : Annotated [" str" , " metadata" ]
203203
204- UP037 .py :47 :14 : UP037 [* ] Remove quotes from type annotation
204+ UP037_0 .py :47 :14 : UP037 [* ] Remove quotes from type annotation
205205 |
20620647 | x : Annotated [" str" , " metadata" ]
207207 | ^^^^^ UP037
@@ -220,7 +220,7 @@ UP037.py:47:14: UP037 [*] Remove quotes from type annotation
22022049 49 | x : Arg (" str" , " name" )
22122150 50 |
222222
223- UP037 .py :49 :8 : UP037 [*] Remove quotes from type annotation
223+ UP037_0 .py :49 :8 : UP037 [*] Remove quotes from type annotation
224224 |
22522547 | x : Annotated [" str" , " metadata" ]
22622648 |
@@ -241,7 +241,7 @@ UP037.py:49:8: UP037 [*] Remove quotes from type annotation
24124151 51 | x : DefaultArg (" str" , " name" )
24224252 52 |
243243
244- UP037 .py :51 :15 : UP037 [*] Remove quotes from type annotation
244+ UP037_0 .py :51 :15 : UP037 [*] Remove quotes from type annotation
245245 |
24624649 | x : Arg (" str" , " name" )
24724750 |
@@ -262,7 +262,7 @@ UP037.py:51:15: UP037 [*] Remove quotes from type annotation
26226253 53 | x : NamedArg (" str" , " name" )
26326354 54 |
264264
265- UP037 .py :53 :13 : UP037 [*] Remove quotes from type annotation
265+ UP037_0 .py :53 :13 : UP037 [*] Remove quotes from type annotation
266266 |
26726751 | x : DefaultArg (" str" , " name" )
26826852 |
@@ -283,7 +283,7 @@ UP037.py:53:13: UP037 [*] Remove quotes from type annotation
28328355 55 | x : DefaultNamedArg (" str" , " name" )
28428456 56 |
285285
286- UP037 .py :55 :20 : UP037 [*] Remove quotes from type annotation
286+ UP037_0 .py :55 :20 : UP037 [*] Remove quotes from type annotation
287287 |
28828853 | x : NamedArg (" str" , " name" )
28928954 |
@@ -304,7 +304,7 @@ UP037.py:55:20: UP037 [*] Remove quotes from type annotation
30430457 57 | x : DefaultNamedArg (" str" , name =" name" )
30530558 58 |
306306
307- UP037 .py :57 :20 : UP037 [*] Remove quotes from type annotation
307+ UP037_0 .py :57 :20 : UP037 [*] Remove quotes from type annotation
308308 |
30930955 | x : DefaultNamedArg (" str" , " name" )
31031056 |
@@ -325,7 +325,7 @@ UP037.py:57:20: UP037 [*] Remove quotes from type annotation
32532559 59 | x : VarArg (" str" )
32632660 60 |
327327
328- UP037 .py :59 :11 : UP037 [*] Remove quotes from type annotation
328+ UP037_0 .py :59 :11 : UP037 [*] Remove quotes from type annotation
329329 |
33033057 | x : DefaultNamedArg (" str" , name =" name" )
33133158 |
@@ -346,7 +346,7 @@ UP037.py:59:11: UP037 [*] Remove quotes from type annotation
34634661 61 | x : List [List [List [" MyClass" ]]]
34734762 62 |
348348
349- UP037 .py :61 :19 : UP037 [*] Remove quotes from type annotation
349+ UP037_0 .py :61 :19 : UP037 [*] Remove quotes from type annotation
350350 |
35135159 | x : VarArg (" str" )
35235260 |
@@ -367,7 +367,7 @@ UP037.py:61:19: UP037 [*] Remove quotes from type annotation
36736763 63 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
36836864 64 |
369369
370- UP037 .py :63 :29 : UP037 [*] Remove quotes from type annotation
370+ UP037_0 .py :63 :29 : UP037 [*] Remove quotes from type annotation
371371 |
37237261 | x : List [List [List [" MyClass" ]]]
37337362 |
@@ -388,7 +388,7 @@ UP037.py:63:29: UP037 [*] Remove quotes from type annotation
38838865 65 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
38938966 66 |
390390
391- UP037 .py :63 :45 : UP037 [*] Remove quotes from type annotation
391+ UP037_0 .py :63 :45 : UP037 [*] Remove quotes from type annotation
392392 |
39339361 | x : List [List [List [" MyClass" ]]]
39439462 |
@@ -409,7 +409,7 @@ UP037.py:63:45: UP037 [*] Remove quotes from type annotation
40940965 65 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
41041066 66 |
411411
412- UP037 .py :65 :29 : UP037 [*] Remove quotes from type annotation
412+ UP037_0 .py :65 :29 : UP037 [*] Remove quotes from type annotation
413413 |
41441463 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
41541564 |
@@ -430,7 +430,7 @@ UP037.py:65:29: UP037 [*] Remove quotes from type annotation
43043067 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
43143168 68 |
432432
433- UP037 .py :65 :36 : UP037 [*] Remove quotes from type annotation
433+ UP037_0 .py :65 :36 : UP037 [*] Remove quotes from type annotation
434434 |
43543563 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
43643664 |
@@ -451,7 +451,7 @@ UP037.py:65:36: UP037 [*] Remove quotes from type annotation
45145167 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
45245268 68 |
453453
454- UP037 .py :65 :45 : UP037 [*] Remove quotes from type annotation
454+ UP037_0 .py :65 :45 : UP037 [*] Remove quotes from type annotation
455455 |
45645663 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
45745764 |
@@ -472,7 +472,7 @@ UP037.py:65:45: UP037 [*] Remove quotes from type annotation
47247267 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
47347368 68 |
474474
475- UP037 .py :65 :52 : UP037 [*] Remove quotes from type annotation
475+ UP037_0 .py :65 :52 : UP037 [*] Remove quotes from type annotation
476476 |
47747763 | x : NamedTuple (" X" , [(" foo" , " int" ), (" bar" , " str" )])
47847864 |
@@ -493,7 +493,7 @@ UP037.py:65:52: UP037 [*] Remove quotes from type annotation
49349367 67 | x : NamedTuple (typename = " X" , fields = [(" foo" , " int" )])
49449468 68 |
495495
496- UP037 .py :67 :24 : UP037 [*] Remove quotes from type annotation
496+ UP037_0 .py :67 :24 : UP037 [*] Remove quotes from type annotation
497497 |
49849865 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
49949966 |
@@ -514,7 +514,7 @@ UP037.py:67:24: UP037 [*] Remove quotes from type annotation
51451469 69 | X : MyCallable (" X" )
51551570 70 |
516516
517- UP037 .py :67 :38 : UP037 [*] Remove quotes from type annotation
517+ UP037_0 .py :67 :38 : UP037 [*] Remove quotes from type annotation
518518 |
51951965 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
52052066 |
@@ -535,7 +535,7 @@ UP037.py:67:38: UP037 [*] Remove quotes from type annotation
53553569 69 | X : MyCallable (" X" )
53653670 70 |
537537
538- UP037 .py :67 :45 : UP037 [*] Remove quotes from type annotation
538+ UP037_0 .py :67 :45 : UP037 [*] Remove quotes from type annotation
539539 |
54054065 | x : NamedTuple (" X" , fields =[(" foo" , " int" ), (" bar" , " str" )])
54154166 |
@@ -554,6 +554,4 @@ UP037.py:67:45: UP037 [*] Remove quotes from type annotation
554554 67 | +x : NamedTuple (typename = " X" , fields = [(" foo" , int )])
55555568 68 |
55655669 69 | X : MyCallable (" X" )
557- 70 70 |
558-
559-
557+ 70 70 |
0 commit comments