Skip to content

Commit cffafa9

Browse files
committed
They shouldn't have been duplicated...
1 parent 979135b commit cffafa9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test-data/unit/check-flags.test

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,6 @@ def h(x): # E: Function is untyped after decorator transformation
11191119

11201120
[case testDisallowAnyDecoratedUnannotatedDecoratorDeferred1]
11211121
# flags: --disallow-any-decorated
1122-
from typing import Any
11231122

11241123
def d(f):
11251124
return f
@@ -1135,18 +1134,18 @@ c = [1]
11351134

11361135
[case testDisallowAnyDecoratedUnannotatedDecoratorDeferred2]
11371136
# flags: --disallow-any-decorated
1138-
from typing import Any
11391137

11401138
def d(f):
11411139
return f
11421140

1141+
c = 1 # no deferral - check that the previous testcase is valid
1142+
11431143
def wrapper() -> None:
11441144
if c:
11451145
@d
11461146
def h(x): # E: Function is untyped after decorator transformation
11471147
pass
11481148

1149-
c = [1]
11501149
[builtins fixtures/list.pyi]
11511150

11521151
[case testDisallowAnyDecoratedErrorIsReportedOnlyOnce]

0 commit comments

Comments
 (0)