diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-01-20 17:56:37 -0700 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-01-20 17:56:37 -0700 |
commit | 5df8ec9673a73e71554c8f53cc6edb60533c5d17 (patch) | |
tree | 81f278559bd3fc0dee32c2dfc5f70fdd9b2b7c3d /numpy/_array_api/_creation_functions.py | |
parent | be1b1932f73fb5946b4867337ba2fd2d31964d11 (diff) | |
download | numpy-5df8ec9673a73e71554c8f53cc6edb60533c5d17.tar.gz |
Fix some incorrect type annotations in the array API submodule
(see https://github.com/data-apis/array-api/pull/116)
Diffstat (limited to 'numpy/_array_api/_creation_functions.py')
-rw-r--r-- | numpy/_array_api/_creation_functions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_array_api/_creation_functions.py b/numpy/_array_api/_creation_functions.py index 1aeaffb71..df64ed1d6 100644 --- a/numpy/_array_api/_creation_functions.py +++ b/numpy/_array_api/_creation_functions.py @@ -70,7 +70,7 @@ def full_like(x: array, fill_value: Union[int, float], /, *, dtype: Optional[dty raise NotImplementedError("Device support is not yet implemented") return np.full_like(x, fill_value, dtype=dtype) -def linspace(start: Union[int, float], stop: Union[int, float], num: int, /, *, dtype: Optional[dtype] = None, device: Optional[device] = None, endpoint: Optional[bool] = True) -> array: +def linspace(start: Union[int, float], stop: Union[int, float], num: int, /, *, dtype: Optional[dtype] = None, device: Optional[device] = None, endpoint: bool = True) -> array: """ Array API compatible wrapper for :py:func:`np.linspace <numpy.linspace>`. |