We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e113a commit 5af9597Copy full SHA for 5af9597
test-data/unit/check-flags.test
@@ -194,7 +194,6 @@ x = 0 # type: NoReturn # E: Incompatible types in assignment (expression has t
194
[builtins fixtures/dict.pyi]
195
196
[case testNoReturnImportFromTyping]
197
-# flags: --warn-no-return
198
from typing import NoReturn
199
200
def h() -> NoReturn:
@@ -207,7 +206,7 @@ def no_return() -> NoReturn: pass
207
206
def f() -> NoReturn:
208
no_return()
209
210
-x = 0 # type: NoReturn # E: Incompatible types in assignment (expression has type "int", variable has type NoReturn)
+x: NoReturn = 0 # E: Incompatible types in assignment (expression has type "int", variable has type NoReturn)
211
212
213
[case testShowErrorContextFunction]
0 commit comments