diff options
| author | Aaron Meurer <asmeurer@gmail.com> | 2021-02-23 16:17:07 -0700 |
|---|---|---|
| committer | Aaron Meurer <asmeurer@gmail.com> | 2021-02-23 16:17:07 -0700 |
| commit | f2ac67e236c1dbc60f66c4a4b041403a197e52f2 (patch) | |
| tree | c4c50c88cb923667d94666a1558108f9decca963 /numpy/_array_api/_set_functions.py | |
| parent | affc5f0c2581a8d17825bcb7d9610e4f58560b5d (diff) | |
| download | numpy-f2ac67e236c1dbc60f66c4a4b041403a197e52f2.tar.gz | |
Update array_api namespace with latest changes from the spec
Diffstat (limited to 'numpy/_array_api/_set_functions.py')
| -rw-r--r-- | numpy/_array_api/_set_functions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/_array_api/_set_functions.py b/numpy/_array_api/_set_functions.py index 0a75d727e..4dfc215a7 100644 --- a/numpy/_array_api/_set_functions.py +++ b/numpy/_array_api/_set_functions.py @@ -4,10 +4,10 @@ from ._types import Tuple, Union, array import numpy as np -def unique(x: array, /, *, return_counts: bool = False, return_index: bool = False, return_inverse: bool = False, sorted: bool = True) -> Union[array, Tuple[array, ...]]: +def unique(x: array, /, *, return_counts: bool = False, return_index: bool = False, return_inverse: bool = False) -> Union[array, Tuple[array, ...]]: """ Array API compatible wrapper for :py:func:`np.unique <numpy.unique>`. See its docstring for more information. """ - return np.unique._implementation(x, return_counts=return_counts, return_index=return_index, return_inverse=return_inverse, sorted=sorted) + return np.unique._implementation(x, return_counts=return_counts, return_index=return_index, return_inverse=return_inverse) |
