Skip to content

hypothesis 6.88.4 and later raises warnings #211

Closed
@jakevdp

Description

@jakevdp

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions