File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,10 @@ def assert_pyright_output(
6868 {
6969 "expected_status" : 1 ,
7070 "expected_outputs" : [
71- 'Argument of type "Literal[\' \' ]" cannot be assigned to parameter "a_number" '
72- 'of type "int | float | Number | None"'
71+ 'Argument of type "Literal[\' \' ]" cannot be assigned to parameter "a_number" ' ,
72+ '"__float__" is not present' ,
73+ '"__int__" is not present' ,
74+ '"__complex__" is not present' ,
7375 ],
7476 },
7577 ),
@@ -203,7 +205,7 @@ def assert_pyright_output(
203205 "expected_status" : 1 ,
204206 "expected_outputs" : [
205207 'Argument of type "tuple[Literal[1], Literal[2]]" cannot be assigned '
206- 'to parameter "a_tuple" of type "Tuple[int | float | Number , str] | None" '
208+ 'to parameter "a_tuple" of type "Tuple[SupportsFloat | SupportsInt | SupportsComplex , str] | None'
207209 ],
208210 },
209211 ),
You can’t perform that action at this time.
0 commit comments