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
Describe the incorrect behavior you saw
I get lots of mypy errors (error: Missing return statement) when using DeferredLock
Describe how to cause this behavior
Run mypy on:
from twisted.internet.defer import DeferredLock async def foo() -> int: lock = DeferredLock() async with lock: return 5
You'll get : foo.py:3: error: Missing return statement
foo.py:3: error: Missing return statement
Setting the return type to Literal[False] tells mypy that this context manager doesn't swallow exceptions.
Additional context Add any other context about the problem here.
mypy 0.981 (compiled: yes) Twisted==22.10.0
The text was updated successfully, but these errors were encountered:
#11795 Update the return type of __aexit__ (#11796)
a60a32b
Successfully merging a pull request may close this issue.
Describe the incorrect behavior you saw
I get lots of mypy errors (error: Missing return statement) when using DeferredLock
Describe how to cause this behavior
Run mypy on:
You'll get :
foo.py:3: error: Missing return statement
Setting the return type to Literal[False] tells mypy that this context manager doesn't swallow exceptions.
Additional context
Add any other context about the problem here.
mypy 0.981 (compiled: yes)
Twisted==22.10.0
The text was updated successfully, but these errors were encountered: