Skip to content

Commit 395852e

Browse files
committed
Fix test typing assertions
1 parent 435f7ef commit 395852e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/integration/test_typing.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
),

0 commit comments

Comments
 (0)