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
with
Bug Report
The "Missing return statement" error misfires on with blocks.
To Reproduce
Create the following python file:
import contextlib def foo() -> int: with contextlib.ExitStack() as stack: return 2
Run mypy:
mypy
Expected Behavior
There should be no error
Actual Behavior
this_issue.py:3: error: Missing return statement Found 1 error in 1 file (checked 1 source file)
Your Environment
The text was updated successfully, but these errors were encountered:
Oh, duplicate of #7726
Sorry, something went wrong.
No branches or pull requests
Bug Report
The "Missing return statement" error misfires on
with
blocks.To Reproduce
Create the following python file:
Run
mypy
:Expected Behavior
There should be no error
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: