Skip to content

Commit 295ee69

Browse files
authored
Merge pull request #149 from asmeurer/array-attributes-fix
Fix array_attributes
2 parents ab69980 + ac9b3b0 commit 295ee69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

array_api_tests/stubs.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
if n != "__init__" # probably exists for Sphinx
3737
]
3838
array_attributes = [
39-
n for n, f in inspect.getmembers(array, predicate=lambda x: not inspect.isfunction(x))
40-
if n != "__init__" # probably exists for Sphinx
39+
n for n, f in inspect.getmembers(array, predicate=lambda x: isinstance(x, property))
4140
]
4241

4342
category_to_funcs: Dict[str, List[FunctionType]] = {}

0 commit comments

Comments
 (0)