Skip to content

Commit 674534b

Browse files
author
David Froger
committed
"TypeVarTuple" and "Unpack" are no more incomplete features
1 parent 7359704 commit 674534b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mypyc/test/test_run.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from mypy import build
1717
from mypy.errors import CompileError
18-
from mypy.options import TYPE_VAR_TUPLE, UNPACK, Options
18+
from mypy.options import Options
1919
from mypy.test.config import test_temp_dir
2020
from mypy.test.data import DataDrivenTestCase
2121
from mypy.test.helpers import assert_module_equivalence, perform_file_operations
@@ -194,7 +194,6 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) ->
194194
options.preserve_asts = True
195195
options.allow_empty_bodies = True
196196
options.incremental = self.separate
197-
options.enable_incomplete_feature = [TYPE_VAR_TUPLE, UNPACK]
198197

199198
# Avoid checking modules/packages named 'unchecked', to provide a way
200199
# to test interacting with code we don't have types for.

test-data/unit/pythoneval.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@ _testInferenceOfDunderDictOnClassObjects.py:4: error: Property "__dict__" define
20072007
_testInferenceOfDunderDictOnClassObjects.py:4: error: Incompatible types in assignment (expression has type "Dict[Never, Never]", variable has type "MappingProxyType[str, Any]")
20082008

20092009
[case testTypeVarTuple]
2010-
# flags: --enable-incomplete-feature=TypeVarTuple --enable-incomplete-feature=Unpack --python-version=3.11
2010+
# flags: --enable-incomplete-feature=TypeVarTuple --python-version=3.11
20112011
from typing import Any, Callable, Unpack, TypeVarTuple
20122012

20132013
Ts = TypeVarTuple("Ts")
@@ -2019,7 +2019,7 @@ def call(callback: Callable[[Unpack[Ts]], Any], *args: Unpack[Ts]) -> Any:
20192019
...
20202020

20212021
[case testTypeVarTupleTypingExtensions]
2022-
# flags: --enable-incomplete-feature=TypeVarTuple --enable-incomplete-feature=Unpack
2022+
# flags: --enable-incomplete-feature=TypeVarTuple
20232023
from typing_extensions import Unpack, TypeVarTuple
20242024
from typing import Any, Callable
20252025

0 commit comments

Comments
 (0)