Skip to content

warn-unreachable doesn't work on the top level #11438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KotlinIsland opened this issue Nov 3, 2021 · 1 comment
Closed

warn-unreachable doesn't work on the top level #11438

KotlinIsland opened this issue Nov 3, 2021 · 1 comment
Labels
bug mypy got something wrong

Comments

@KotlinIsland
Copy link
Contributor

def foo() -> NoReturn:
    raise Exception

foo()
print("hi")   # no error
@KotlinIsland KotlinIsland added the bug mypy got something wrong label Nov 3, 2021
@sobolevn
Copy link
Member

sobolevn commented Nov 3, 2021

Fixed by #11361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

2 participants