diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-07-08 16:56:27 -0600 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-07-08 16:56:27 -0600 |
commit | fc1ff6fc3045482a72c359689ee7bfa7e3299985 (patch) | |
tree | 0b5668fa928cf428fc83c103a74bdc02238341cd /numpy/_array_api/_utility_functions.py | |
parent | 13796236295b344ee83e79c8a33ad6205c0095db (diff) | |
download | numpy-fc1ff6fc3045482a72c359689ee7bfa7e3299985.tar.gz |
Capitalize the names of the type hint types in the array API
That way they aren't ambiguous with the attributes with the same names.
Diffstat (limited to 'numpy/_array_api/_utility_functions.py')
-rw-r--r-- | numpy/_array_api/_utility_functions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/_array_api/_utility_functions.py b/numpy/_array_api/_utility_functions.py index e280b5785..a6a7721dd 100644 --- a/numpy/_array_api/_utility_functions.py +++ b/numpy/_array_api/_utility_functions.py @@ -4,11 +4,11 @@ from ._array_object import ndarray from typing import TYPE_CHECKING if TYPE_CHECKING: - from ._types import Optional, Tuple, Union, array + from ._types import Optional, Tuple, Union, Array import numpy as np -def all(x: array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keepdims: bool = False) -> array: +def all(x: Array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keepdims: bool = False) -> Array: """ Array API compatible wrapper for :py:func:`np.all <numpy.all>`. @@ -16,7 +16,7 @@ def all(x: array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keep """ return ndarray._new(np.asarray(np.all(x._array, axis=axis, keepdims=keepdims))) -def any(x: array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keepdims: bool = False) -> array: +def any(x: Array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keepdims: bool = False) -> Array: """ Array API compatible wrapper for :py:func:`np.any <numpy.any>`. |