From ae0876380cf16463c283e9a269f23776cc6c1fb3 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Fri, 20 Sep 2024 14:33:20 +0100 Subject: [PATCH] New syntax does not need to be enabled with a flag --- test-data/unit/check-python312.test | 2 -- test-data/unit/pythoneval.test | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test-data/unit/check-python312.test b/test-data/unit/check-python312.test index 7ef34bf43509..085cc052705d 100644 --- a/test-data/unit/check-python312.test +++ b/test-data/unit/check-python312.test @@ -394,7 +394,6 @@ inv3_2: Invariant3[int] = Invariant3[float](1) # E: Incompatible types in assig [builtins fixtures/property.pyi] [case testPEP695InferVarianceWithInheritedSelf] -# flags: --enable-incomplete-feature=NewGenericSyntax from typing import overload, Self, TypeVar, Generic T = TypeVar("T") @@ -413,7 +412,6 @@ a3: D[int, int] = D[object, object]() # E: Incompatible types in assignment (ex a4: D[object, int] = D[int, object]() # E: Incompatible types in assignment (expression has type "D[int, object]", variable has type "D[object, int]") [case testPEP695InferVarianceWithReturnSelf] -# flags: --enable-incomplete-feature=NewGenericSyntax from typing import Self, overload class Cov[T]: diff --git a/test-data/unit/pythoneval.test b/test-data/unit/pythoneval.test index 0d21f687da04..89f01bff963e 100644 --- a/test-data/unit/pythoneval.test +++ b/test-data/unit/pythoneval.test @@ -2198,7 +2198,7 @@ type L1 = Never type L2 = list[Never] [case testPEP695VarianceInferenceSpecialCaseWithTypeshed] -# flags: --python-version=3.12 --enable-incomplete-feature=NewGenericSyntax +# flags: --python-version=3.12 class C1[T1, T2](list[T1]): def m(self, a: T2) -> None: ...