File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ class C:
338
338
-- Reassignments
339
339
340
340
[case testFinalReassignModuleVar]
341
- # flags: --allow-redefinition --no- new-semantic-analyzer
341
+ # flags: --allow-redefinition --new-semantic-analyzer
342
342
from typing import Final
343
343
344
344
x: Final = 1
@@ -361,12 +361,11 @@ y: Final = 2 # E: Cannot redefine an existing name as final
361
361
y = 3 # E: Cannot assign to final name "y"
362
362
363
363
z: Final = 1
364
- z: Final = 2 # E: Name 'z' already defined on line 23 \
365
- # E: Cannot redefine an existing name as final
364
+ z: Final = 2 # E: Cannot redefine an existing name as final
366
365
z = 3 # E: Cannot assign to final name "z"
367
366
368
367
[case testFinalReassignModuleVar2]
369
- # flags: --allow-redefinition --no-new-semantic-analyzer
368
+ # flags: --allow-redefinition
370
369
from typing import Final
371
370
372
371
x: Final = 1
Original file line number Diff line number Diff line change @@ -1047,7 +1047,7 @@ class B: pass
1047
1047
[builtins fixtures/for.pyi]
1048
1048
1049
1049
[case testReusingInferredForIndex2]
1050
- # flags: --allow-redefinition --no-new-semantic-analyzer
1050
+ # flags: --allow-redefinition
1051
1051
1052
1052
def f() -> None:
1053
1053
for a in [A()]: pass
@@ -2457,7 +2457,7 @@ _ = 0
2457
2457
_ = '' # E: Incompatible types in assignment (expression has type "str", variable has type "int")
2458
2458
2459
2459
[case testUnusedTargetNotClass]
2460
- # flags: --allow-redefinition --no-new-semantic-analyzer
2460
+ # flags: --allow-redefinition
2461
2461
class C:
2462
2462
_, _ = 0, 0
2463
2463
_ = ''
You can’t perform that action at this time.
0 commit comments