We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@mock.patch
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
Looks like we have a typeshed bug:
from unittest.mock import patch def addition(a: int, b:int) -> int: return a+b @patch('test.addition') def patch_test(mock): print(mock) if __name__ == "__main__": patch_test()
In this simple example mypy says:
test.py:12: error: Missing positional argument "mock" in call to "patch_test" [call-arg]
Undoing 9e86c60 fixes it
The text was updated successfully, but these errors were encountered:
Fix @patch when new is missing
new
6a3fd7f
Closes: python#10457
Successfully merging a pull request may close this issue.
Looks like we have a typeshed bug:
In this simple example mypy says:
Undoing 9e86c60 fixes it
The text was updated successfully, but these errors were encountered: