You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is the correct place to file this issue, but the issue I am having with mypy is that it does not detect the functions added by a pytest-plugin.
Is there a typeshed stub for pytest? Does it have a sub-stub for assume? I’m guessing the answers are Yes, No, respectively. Then it would be a typeshed issue.
I was under the impression that they had enabled type hint in pytest with the latest 6.0.1 release, seen in this issue: pytest-dev/pytest#3342, but this is not the case for pytest-assume.
So the solution is to either add type-hints to the plugin itself, of add a pytest_assume entry in typeshed? If yes, I then I will close this issue.
I am not sure if this is the correct place to file this issue, but the issue I am having with mypy is that it does not detect the functions added by a pytest-plugin.
I created a reproducer script:
When run, I get the output:
I would expect mypy to be able to find this function, but this is not the case. Is this a quirk of pytest-plugins or is this a bug in mypy?
The text was updated successfully, but these errors were encountered: