From 5df8ec9673a73e71554c8f53cc6edb60533c5d17 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 20 Jan 2021 17:56:37 -0700 Subject: Fix some incorrect type annotations in the array API submodule (see https://github.com/data-apis/array-api/pull/116) --- numpy/_array_api/_creation_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/_array_api/_creation_functions.py') 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 `. -- cgit v1.2.1