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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello!
First I would like to thank you all for this awesome project 馃檪
I'm using it with pytest to run some async tests and I noticed that type annotation seems incomplete for async tests.
I wrote a quick example to demonstrate the case, the dependencies needed to run it are:
pip install mypy pytest pytest-asyncio hypothesis
Then created a tests.py with the following content:
tests.py
import pytest from hypothesis import given from hypothesis import strategies as st @given(st.integers()) @pytest.mark.asyncio async def test_hypotesis(x: int) -> None: assert isinstance(x, int)
If you run mypy . you get the following:
mypy .
tests.py:6: error: Argument 1 has incompatible type "Callable[[int], Coroutine[Any, Any, None]]"; expected "Callable[..., None]" Found 1 error in 1 file (checked 1 source file)
Checking the decorator it seems to cover Callable cases but not the ones that uses Coroutines.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Hello!
First I would like to thank you all for this awesome project 馃檪
I'm using it with pytest to run some async tests and I noticed that type annotation seems incomplete for async tests.
I wrote a quick example to demonstrate the case, the dependencies needed to run it are:
Then created a
tests.py
with the following content:If you run
mypy .
you get the following:Checking the decorator it seems to cover Callable cases but not the ones that uses Coroutines.
The text was updated successfully, but these errors were encountered: