Skip to content

Commit a7569df

Browse files
committed
fix tuple number type assertion
1 parent d1e614f commit a7569df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_typing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def expect(status=None, outputs=None, modular=False):
271271
"expected_status": 1,
272272
"expected_outputs": [
273273
'Argument of type "tuple[Literal[1], Literal[2]]" cannot be assigned '
274-
'to parameter "a_tuple" of type "Tuple[SupportsFloat | SupportsInt | SupportsComplex, str] | None'
274+
'to parameter "a_tuple" of type "Tuple[NumberType, str] | None'
275275
],
276276
},
277277
),
@@ -321,7 +321,7 @@ def test_typi001_component_typing(arguments, assertions, tmp_path):
321321

322322
typing_modules = ["pyright"]
323323

324-
if sys.version_info.minor >= 12:
324+
if sys.version_info.minor >= 10:
325325
typing_modules.append("mypy")
326326

327327

0 commit comments

Comments
 (0)