Skip to content

Commit 5af9597

Browse files
committed
Simplify test
1 parent 69e113a commit 5af9597

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test-data/unit/check-flags.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ x = 0 # type: NoReturn # E: Incompatible types in assignment (expression has t
194194
[builtins fixtures/dict.pyi]
195195

196196
[case testNoReturnImportFromTyping]
197-
# flags: --warn-no-return
198197
from typing import NoReturn
199198

200199
def h() -> NoReturn:
@@ -207,7 +206,7 @@ def no_return() -> NoReturn: pass
207206
def f() -> NoReturn:
208207
no_return()
209208

210-
x = 0 # type: NoReturn # E: Incompatible types in assignment (expression has type "int", variable has type NoReturn)
209+
x: NoReturn = 0 # E: Incompatible types in assignment (expression has type "int", variable has type NoReturn)
211210
[builtins fixtures/dict.pyi]
212211

213212
[case testShowErrorContextFunction]

0 commit comments

Comments
 (0)