11-- -
22source : crates / ruff_linter / src / rules / ruff / mod .rs
33-- -
4- RUF066 ` Annotated[]` type must not be nested within another type
4+ RUF066 ` Annotated[]` type must not be part of a Union or Optional type
55 -- > RUF066 .py :4 :4
66 |
773 | # Errors
@@ -11,7 +11,7 @@ RUF066 `Annotated[]` type must not be nested within another type
11116 | c : Optional [Annotated [float , " A float" ]] = 2.71
1212 |
1313
14- RUF066 ` Annotated[]` type must not be nested within a PEP604 type union (| )
14+ RUF066 ` Annotated[]` type must not be part of a PEP604 type union (| )
1515 --> RUF066 .py :5 :4
1616 |
17173 | # Errors
@@ -22,7 +22,7 @@ RUF066 `Annotated[]` type must not be nested within a PEP604 type union (|)
22227 | d : Union [Annotated [int , " An integer" ], Annotated [str , " A string" ]]
2323 |
2424
25- RUF066 `Annotated []` type must not be nested within another type
25+ RUF066 `Annotated []` type must not be part of a Union or Optional type
2626 -- > RUF066 .py :6 :4
2727 |
28284 | a : Union [Annotated [int , " An integer" ], None ] = 5
@@ -32,7 +32,7 @@ RUF066 `Annotated[]` type must not be nested within another type
32327 | d : Union [Annotated [int , " An integer" ], Annotated [str , " A string" ]]
3333 |
3434
35- RUF066 ` Annotated[]` type must not be nested within another type
35+ RUF066 ` Annotated[]` type must not be part of a Union or Optional type
3636 -- > RUF066 .py :7 :4
3737 |
38385 | b : Annotated [Union [int , str ], " An integer or string" ] | None = " World"
@@ -43,7 +43,7 @@ RUF066 `Annotated[]` type must not be nested within another type
43439 | def f1 (x : Union [Annotated [int , " An integer" ], None ]) - > None :
4444 |
4545
46- RUF066 ` Annotated[]` type must not be nested within another type
46+ RUF066 ` Annotated[]` type must not be part of a Union or Optional type
4747 -- > RUF066 .py :7 :4
4848 |
49495 | b : Annotated [Union [int , str ], " An integer or string" ] | None = " World"
@@ -54,7 +54,7 @@ RUF066 `Annotated[]` type must not be nested within another type
54549 | def f1 (x : Union [Annotated [int , " An integer" ], None ]) - > None :
5555 |
5656
57- RUF066 ` Annotated[]` type must not be nested within another type
57+ RUF066 ` Annotated[]` type must not be part of a Union or Optional type
5858 -- > RUF066 .py :9 :11
5959 |
6060 7 | d : Union [Annotated [int , " An integer" ], Annotated [str , " A string" ]]
@@ -64,7 +64,7 @@ RUF066 `Annotated[]` type must not be nested within another type
646410 | pass
6565 |
6666
67- RUF066 ` Annotated[]` type must not be nested within a PEP604 type union (| )
67+ RUF066 ` Annotated[]` type must not be part of a PEP604 type union (| )
6868 --> RUF066 .py :12 :11
6969 |
707010 | pass
@@ -74,7 +74,7 @@ RUF066 `Annotated[]` type must not be nested within a PEP604 type union (|)
747413 | pass
7575 |
7676
77- RUF066 `Annotated []` type must not be nested within another type
77+ RUF066 `Annotated []` type must not be part of a Union or Optional type
7878 -- > RUF066 .py :15 :11
7979 |
808013 | pass
@@ -84,7 +84,7 @@ RUF066 `Annotated[]` type must not be nested within another type
848416 | pass
8585 |
8686
87- RUF066 ` Annotated[]` type must not be nested within another type
87+ RUF066 ` Annotated[]` type must not be part of a Union or Optional type
8888 -- > RUF066 .py :18 :4
8989 |
909016 | pass
@@ -95,7 +95,7 @@ RUF066 `Annotated[]` type must not be nested within another type
959520 | l : TypeAlias = Annotated [int , " An integer" ] | None
9696 |
9797
98- RUF066 ` Annotated[]` type must not be nested within a PEP604 type union (| )
98+ RUF066 ` Annotated[]` type must not be part of a PEP604 type union (| )
9999 --> RUF066 .py :20 :16
100100 |
10110118 | e : Annotated [Annotated [int , " An integer" ], " Another annotation" ]
@@ -106,7 +106,7 @@ RUF066 `Annotated[]` type must not be nested within a PEP604 type union (|)
10610622 | n : TypeAlias = Optional [Annotated [float , " A float" ]]
107107 |
108108
109- RUF066 `Annotated []` type must not be nested within another type
109+ RUF066 `Annotated []` type must not be part of a Union or Optional type
110110 -- > RUF066 .py :21 :16
111111 |
11211220 | l : TypeAlias = Annotated [int , " An integer" ] | None
@@ -116,7 +116,7 @@ RUF066 `Annotated[]` type must not be nested within another type
11611623 | o : TypeAlias = " Annotated[str, 'A string'] | None"
117117 |
118118
119- RUF066 ` Annotated[]` type must not be nested within another type
119+ RUF066 ` Annotated[]` type must not be part of a Union or Optional type
120120 -- > RUF066 .py :22 :16
121121 |
12212220 | l : TypeAlias = Annotated [int , " An integer" ] | None
@@ -126,7 +126,7 @@ RUF066 `Annotated[]` type must not be nested within another type
12612623 | o : TypeAlias = " Annotated[str, 'A string'] | None"
127127 |
128128
129- RUF066 ` Annotated[]` type must not be nested within a PEP604 type union (| )
129+ RUF066 ` Annotated[]` type must not be part of a PEP604 type union (| )
130130 --> RUF066 .py :23 :17
131131 |
13213221 | m : TypeAlias = Union [Annotated [int , " An integer" ], str ]
@@ -137,7 +137,7 @@ RUF066 `Annotated[]` type must not be nested within a PEP604 type union (|)
13713725 | p : None | Annotated [int , " An integer" ]
138138 |
139139
140- RUF066 `Annotated []` type must not be nested within a PEP604 type union (| )
140+ RUF066 `Annotated []` type must not be part of a PEP604 type union (| )
141141 --> RUF066 .py :25 :4
142142 |
14314323 | o : TypeAlias = " Annotated[str, 'A string'] | None"
@@ -148,7 +148,7 @@ RUF066 `Annotated[]` type must not be nested within a PEP604 type union (|)
14814827 | q = Annotated [int | str , " An integer or string" ] | None
149149 |
150150
151- RUF066 `Annotated []` type must not be nested within a PEP604 type union (| )
151+ RUF066 `Annotated []` type must not be part of a PEP604 type union (| )
152152 --> RUF066 .py :27 :5
153153 |
15415425 | p : None | Annotated [int , " An integer" ]
@@ -158,7 +158,7 @@ RUF066 `Annotated[]` type must not be nested within a PEP604 type union (|)
15815828 | r = Optional [Annotated [float | None , " A float or None" ]]
159159 |
160160
161- RUF066 `Annotated []` type must not be nested within another type
161+ RUF066 `Annotated []` type must not be part of a Union or Optional type
162162 -- > RUF066 .py :28 :5
163163 |
16416427 | q = Annotated [int | str , " An integer or string" ] | None
@@ -168,7 +168,7 @@ RUF066 `Annotated[]` type must not be nested within another type
16816830 | @some_decorator ()
169169 |
170170
171- RUF066 ` Annotated[]` type must not be nested within a PEP604 type union (| )
171+ RUF066 ` Annotated[]` type must not be part of a PEP604 type union (| )
172172 --> RUF066 .py :31 :13
173173 |
17417430 | @some_decorator ()
0 commit comments