Skip to content

Commit e53385d

Browse files
authored
Merge pull request #16 from asmeurer/fix-tests
Fix __all__ for numpy and cupy
2 parents cda03db + 73191e1 commit e53385d

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

array_api_compat/common/_aliases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ def trunc(x: ndarray, /, xp, **kwargs) -> ndarray:
408408
return x
409409
return xp.trunc(x, **kwargs)
410410

411-
__all__ = ['UniqueAllResult', 'UniqueCountsResult', 'UniqueInverseResult',
411+
__all__ = ['arange', 'empty', 'empty_like', 'eye', 'full', 'full_like',
412+
'linspace', 'ones', 'ones_like', 'zeros', 'zeros_like', 'UniqueAllResult', 'UniqueCountsResult', 'UniqueInverseResult',
412413
'unique_all', 'unique_counts', 'unique_inverse', 'unique_values',
413414
'astype', 'std', 'var', 'permute_dims', 'reshape', 'argsort',
414415
'sort', 'sum', 'prod', 'ceil', 'floor', 'trunc']

array_api_compat/cupy/_aliases.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
floor = get_xp(cp)(_aliases.floor)
5959
trunc = get_xp(cp)(_aliases.trunc)
6060

61-
__all__ = _aliases.__all__ + ['asarray', 'asarray_cupy', 'bool', 'arange',
62-
'empty', 'empty_like', 'eye', 'full', 'full_like',
63-
'linspace', 'ones', 'ones_like', 'zeros', 'zeros_like']
61+
__all__ = _aliases.__all__ + ['asarray', 'asarray_cupy', 'bool', 'acos',
62+
'acosh', 'asin', 'asinh', 'atan', 'atan2',
63+
'atanh', 'bitwise_left_shift', 'bitwise_invert',
64+
'bitwise_right_shift', 'concat', 'pow']

array_api_compat/numpy/_aliases.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
floor = get_xp(np)(_aliases.floor)
5959
trunc = get_xp(np)(_aliases.trunc)
6060

61-
__all__ = _aliases.__all__ + ['asarray', 'asarray_numpy', 'bool', 'arange',
62-
'empty', 'empty_like', 'eye', 'full', 'full_like',
63-
'linspace', 'ones', 'ones_like', 'zeros', 'zeros_like']
61+
__all__ = _aliases.__all__ + ['asarray', 'asarray_numpy', 'bool', 'acos',
62+
'acosh', 'asin', 'asinh', 'atan', 'atan2',
63+
'atanh', 'bitwise_left_shift', 'bitwise_invert',
64+
'bitwise_right_shift', 'concat', 'pow']

0 commit comments

Comments
 (0)