File tree Expand file tree Collapse file tree 2 files changed +110
-97
lines changed Expand file tree Collapse file tree 2 files changed +110
-97
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,18 @@ def _wrap_sort_argsort(
64
64
65
65
if order is not None :
66
66
raise NotImplementedError (
67
- "order keyword argument is only supported with its default value."
68
- )
69
- if kind is not None and stable is not None :
70
- raise ValueError (
71
- "`kind` and `stable` parameters can't be provided at the same time."
72
- " Use only one of them."
67
+ "`order` keyword argument is only supported with its default value."
73
68
)
69
+ if stable is not None :
70
+ if stable not in [True , False ]:
71
+ raise ValueError (
72
+ "`stable` parameter should be None, True, or False."
73
+ )
74
+ if kind is not None :
75
+ raise ValueError (
76
+ "`kind` and `stable` parameters can't be provided at"
77
+ " the same time. Use only one of them."
78
+ )
74
79
75
80
usm_a = dpnp .get_usm_ndarray (a )
76
81
if axis is None :
You can’t perform that action at this time.
0 commit comments