We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bug Report
If an if statement is unreachable, then mypy points to just the i as the error.
i
To Reproduce
def x() -> None: assert False if 5: print("yeah")
Expected Behavior
repro.py:3: error: Statement is unreachable [unreachable] if 5: ^~~~~ Found 1 error in 1 file (checked 1 source file)
Actual Behavior
repro.py:3: error: Statement is unreachable [unreachable] if 5: ^ Found 1 error in 1 file (checked 1 source file)
Your Environment
--warn-unreachable --pretty
mypy.ini
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a compromise instead of showing the end as the end of the if block...
if
Sorry, something went wrong.
No branches or pull requests
Bug Report
If an if statement is unreachable, then mypy points to just the
i
as the error.To Reproduce
Expected Behavior
Actual Behavior
Your Environment
--warn-unreachable --pretty
mypy.ini
(and other config files): none I thinkThe text was updated successfully, but these errors were encountered: