Skip to content

hypothesis 6.88.4 and later raises warnings #211

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

Closed
jakevdp opened this issue Nov 16, 2023 · 1 comment · Fixed by #212
Closed

hypothesis 6.88.4 and later raises warnings #211

jakevdp opened this issue Nov 16, 2023 · 1 comment · Fixed by #212

Comments

@jakevdp
Copy link
Contributor

jakevdp commented Nov 16, 2023

Running the test suite with hypothesis 6.88.4 or newer results in a number of warnings:

ERROR array_api_tests/test_array_object.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_creation_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_data_type_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_fft.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_indexing_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_linalg.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_manipulation_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_operators_and_elementwise_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_searching_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_set_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_sorting_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_special_cases.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_statistical_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/test_utility_functions.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/meta/test_hypothesis_helpers.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/meta/test_partial_adopters.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/meta/test_special_cases.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
ERROR array_api_tests/meta/test_utils.py - hypothesis.errors.HypothesisWarning: Return-type annotation is `st.SearchStrategy[array_api_tests.hypothesis_helpers.OnewayPromotableDtypes]`, but the decorated function should return a value (not a strategy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants