data-apis / array-api-tests

Test suite for the PyData Array APIs standard
https://data-apis.org/array-api-tests/
MIT License
64 stars 41 forks source link

hypothesis 6.88.4 and later raises warnings #211

Closed jakevdp closed 11 months ago

jakevdp commented 11 months ago

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)
asmeurer commented 11 months ago

https://hypothesis.readthedocs.io/en/latest/changes.html#v6-88-4