-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bug with patch and mypy #4263
Comments
I suppose this is caused by #3871? |
@JelleZijlstra is there a release with this fix so I can test? |
pytest_mock has no stubs in typeshed, which is why
|
@srittau so adding type-hints to pytest_mock also solves the problem? |
That would be the best solution, of course. |
@srittau while it is not accepted by pytest_mock. I tried adding the stubs for pytest_mock from https://github.com/srittau/python-stubs/tree/master/stubs/pytest_mock. I am still getting a related errors:
The draft PR is here staticdev/toml-validator#110 Can you also help me with that one? |
@staticdev Do you run mypy with |
@srittau yes, I put them on the path. And if I remove the folder I get even more errors:
I think the argument |
When I check the code above I get:
But I expect Mock from patch. I worked in previous versions.
The text was updated successfully, but these errors were encountered: