diff --git a/array_api_tests/stubs.py b/array_api_tests/stubs.py index 3fba33fc..69ec886d 100644 --- a/array_api_tests/stubs.py +++ b/array_api_tests/stubs.py @@ -36,8 +36,7 @@ if n != "__init__" # probably exists for Sphinx ] array_attributes = [ - n for n, f in inspect.getmembers(array, predicate=lambda x: not inspect.isfunction(x)) - if n != "__init__" # probably exists for Sphinx + n for n, f in inspect.getmembers(array, predicate=lambda x: isinstance(x, property)) ] category_to_funcs: Dict[str, List[FunctionType]] = {}