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(
68
68
{
69
69
"expected_status" : 1 ,
70
70
"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' ,
73
75
],
74
76
},
75
77
),
@@ -203,7 +205,7 @@ def assert_pyright_output(
203
205
"expected_status" : 1 ,
204
206
"expected_outputs" : [
205
207
'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'
207
209
],
208
210
},
209
211
),
You can’t perform that action at this time.
0 commit comments