diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-10-22 15:37:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 15:37:34 -0500 |
commit | 203936c1e0950637fc2852b7f70852c49bcea291 (patch) | |
tree | 6aa5277e3fee7f75cd61a973b34981c831acaacd /numpy/array_api/_array_object.py | |
parent | 31bb98bab3c90e781d94473dde0c0c952a3dc213 (diff) | |
parent | d74bea12d19dd92c9cf07cac35e94d45fb331832 (diff) | |
download | numpy-203936c1e0950637fc2852b7f70852c49bcea291.tar.gz |
Merge pull request #20129 from BvB93/api
ENH: Misc typing improvements to `np.array_api`
Diffstat (limited to 'numpy/array_api/_array_object.py')
-rw-r--r-- | numpy/array_api/_array_object.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/array_api/_array_object.py b/numpy/array_api/_array_object.py index 830319e8c..ef66c5efd 100644 --- a/numpy/array_api/_array_object.py +++ b/numpy/array_api/_array_object.py @@ -29,7 +29,7 @@ from ._dtypes import ( _dtype_categories, ) -from typing import TYPE_CHECKING, Optional, Tuple, Union +from typing import TYPE_CHECKING, Optional, Tuple, Union, Any if TYPE_CHECKING: from ._typing import PyCapsule, Device, Dtype @@ -382,7 +382,7 @@ class Array: def __array_namespace__( self: Array, /, *, api_version: Optional[str] = None - ) -> object: + ) -> Any: if api_version is not None and not api_version.startswith("2021."): raise ValueError(f"Unrecognized array API version: {api_version!r}") return array_api |