summaryrefslogtreecommitdiff
path: root/numpy/core/_asarray.pyi
diff options
context:
space:
mode:
authorFrancesc Elies <elies@posteo.net>2023-02-21 14:50:04 +0100
committerFrancesc Elies <elies@posteo.net>2023-02-21 14:50:04 +0100
commit8816c76631af79c46a8cf33ac1a8a79b2717c9ac (patch)
treefe9e98ee13371e34049ce4b0080adc4717ed5188 /numpy/core/_asarray.pyi
parentb657a75ca651368b2d29c221287046333c3f7580 (diff)
downloadnumpy-8816c76631af79c46a8cf33ac1a8a79b2717c9ac.tar.gz
TYP,MAINT: Add a missing explicit Any parameter
Diffstat (limited to 'numpy/core/_asarray.pyi')
-rw-r--r--numpy/core/_asarray.pyi8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/_asarray.pyi b/numpy/core/_asarray.pyi
index 473bc037c..69d1528d4 100644
--- a/numpy/core/_asarray.pyi
+++ b/numpy/core/_asarray.pyi
@@ -1,10 +1,10 @@
from collections.abc import Iterable
-from typing import TypeVar, Union, overload, Literal
+from typing import Any, TypeVar, Union, overload, Literal
from numpy import ndarray
from numpy._typing import DTypeLike, _SupportsArrayFunc
-_ArrayType = TypeVar("_ArrayType", bound=ndarray)
+_ArrayType = TypeVar("_ArrayType", bound=ndarray[Any, Any])
_Requirements = Literal[
"C", "C_CONTIGUOUS", "CONTIGUOUS",
@@ -31,7 +31,7 @@ def require(
requirements: _E | Iterable[_RequirementsWithE] = ...,
*,
like: _SupportsArrayFunc = ...
-) -> ndarray: ...
+) -> ndarray[Any, Any]: ...
@overload
def require(
a: object,
@@ -39,4 +39,4 @@ def require(
requirements: None | _Requirements | Iterable[_Requirements] = ...,
*,
like: _SupportsArrayFunc = ...
-) -> ndarray: ...
+) -> ndarray[Any, Any]: ...