-
Notifications
You must be signed in to change notification settings - Fork 586
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
mypy --no-implicit-reexport infers st.one_of(...) -> Any in 6.3.3+
#2884
Comments
|
I'd expect this to be linked to hypothesis-python-6.3.2...hypothesis-python-6.3.3, where the implementation of Can you check 6.3.2 and 6.3.3 to confirm that it's one of those updates, and also report your Python and mypy versions? |
|
Yes, sure! Currently I have:
And it works. Now, let's update hypothesis to 6.3.3 |
|
Huh, I think that this is because I moved the definition of What's worse is that we already have an automated test for this (note hypothesis/whole-repo-tests/test_type_hints.py Lines 51 to 86 in d76b284
|
|
Looks like a job for me! 😆 |
|
Ok, here's what's happening.
Related python/mypy#7042 What are the possible solutions?
|
Given that you've volunteered to fix the violations, I'm happy to go with this! Thanks @sobolevn 🤩 (presuming that it doesn't require unexpectedly ugly code beyond the changed imports) |
😆 😭 |
mypy --no-implicit-reexport infers st.one_of(...) -> Any in 6.3.3+
|
I confirm that it works now: dry-python/returns#847 |
My CI failed, because of the
mypycheck.For some reason the latest version did change the typing of
st.one_of.Source: https://github.com/dry-python/returns/blob/master/returns/contrib/hypothesis/containers.py#L58
Link to the job: https://github.com/dry-python/returns/pull/839/checks?check_run_id=200189528
The text was updated successfully, but these errors were encountered: