summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-03-25 09:40:49 -0600
committerGitHub <noreply@github.com>2022-03-25 09:40:49 -0600
commit266aad7478bc7fbcc55eea7f942a0d373b838396 (patch)
tree0f144df0739b772bf1a38b3e03463c6b4eb21d91 /numpy/core
parent4115eead62a382a32afdb0450c54e0249db02915 (diff)
parent65ec64c932626689b50b53e0909ced47f5a821fa (diff)
downloadnumpy-266aad7478bc7fbcc55eea7f942a0d373b838396.tar.gz
Merge pull request #21216 from BvB93/_typing
MAINT: Split `numpy.typing` into a public and private component
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/_asarray.pyi2
-rw-r--r--numpy/core/arrayprint.pyi2
-rw-r--r--numpy/core/defchararray.pyi2
-rw-r--r--numpy/core/einsumfunc.pyi2
-rw-r--r--numpy/core/fromnumeric.pyi2
-rw-r--r--numpy/core/function_base.pyi2
-rw-r--r--numpy/core/multiarray.pyi2
-rw-r--r--numpy/core/numeric.pyi2
-rw-r--r--numpy/core/numerictypes.pyi2
-rw-r--r--numpy/core/records.pyi2
-rw-r--r--numpy/core/shape_base.pyi2
11 files changed, 11 insertions, 11 deletions
diff --git a/numpy/core/_asarray.pyi b/numpy/core/_asarray.pyi
index 51b794130..473bc037c 100644
--- a/numpy/core/_asarray.pyi
+++ b/numpy/core/_asarray.pyi
@@ -2,7 +2,7 @@ from collections.abc import Iterable
from typing import TypeVar, Union, overload, Literal
from numpy import ndarray
-from numpy.typing import DTypeLike, _SupportsArrayFunc
+from numpy._typing import DTypeLike, _SupportsArrayFunc
_ArrayType = TypeVar("_ArrayType", bound=ndarray)
diff --git a/numpy/core/arrayprint.pyi b/numpy/core/arrayprint.pyi
index 996d4c782..d8255387a 100644
--- a/numpy/core/arrayprint.pyi
+++ b/numpy/core/arrayprint.pyi
@@ -21,7 +21,7 @@ from numpy import (
longdouble,
clongdouble,
)
-from numpy.typing import ArrayLike, _CharLike_co, _FloatLike_co
+from numpy._typing import ArrayLike, _CharLike_co, _FloatLike_co
_FloatMode = Literal["fixed", "unique", "maxprec", "maxprec_equal"]
diff --git a/numpy/core/defchararray.pyi b/numpy/core/defchararray.pyi
index 250706eb1..73d90bb2f 100644
--- a/numpy/core/defchararray.pyi
+++ b/numpy/core/defchararray.pyi
@@ -16,7 +16,7 @@ from numpy import (
_OrderKACF,
)
-from numpy.typing import (
+from numpy._typing import (
NDArray,
_ArrayLikeStr_co as U_co,
_ArrayLikeBytes_co as S_co,
diff --git a/numpy/core/einsumfunc.pyi b/numpy/core/einsumfunc.pyi
index 278fa2044..e614254ca 100644
--- a/numpy/core/einsumfunc.pyi
+++ b/numpy/core/einsumfunc.pyi
@@ -12,7 +12,7 @@ from numpy import (
number,
_OrderKACF,
)
-from numpy.typing import (
+from numpy._typing import (
_ArrayLikeBool_co,
_ArrayLikeUInt_co,
_ArrayLikeInt_co,
diff --git a/numpy/core/fromnumeric.pyi b/numpy/core/fromnumeric.pyi
index 7d8671c76..17b17819d 100644
--- a/numpy/core/fromnumeric.pyi
+++ b/numpy/core/fromnumeric.pyi
@@ -22,7 +22,7 @@ from numpy import (
_SortKind,
_SortSide,
)
-from numpy.typing import (
+from numpy._typing import (
DTypeLike,
_DTypeLike,
ArrayLike,
diff --git a/numpy/core/function_base.pyi b/numpy/core/function_base.pyi
index 520046c19..2c2a277b1 100644
--- a/numpy/core/function_base.pyi
+++ b/numpy/core/function_base.pyi
@@ -7,7 +7,7 @@ from typing import (
)
from numpy import floating, complexfloating, generic
-from numpy.typing import (
+from numpy._typing import (
NDArray,
DTypeLike,
_DTypeLike,
diff --git a/numpy/core/multiarray.pyi b/numpy/core/multiarray.pyi
index 9117ce17c..1be582357 100644
--- a/numpy/core/multiarray.pyi
+++ b/numpy/core/multiarray.pyi
@@ -48,7 +48,7 @@ from numpy import (
_NDIterOpFlagsKind,
)
-from numpy.typing import (
+from numpy._typing import (
# Shapes
_ShapeLike,
diff --git a/numpy/core/numeric.pyi b/numpy/core/numeric.pyi
index 796f30304..d09144f90 100644
--- a/numpy/core/numeric.pyi
+++ b/numpy/core/numeric.pyi
@@ -27,7 +27,7 @@ from numpy import (
_OrderCF,
)
-from numpy.typing import (
+from numpy._typing import (
ArrayLike,
NDArray,
DTypeLike,
diff --git a/numpy/core/numerictypes.pyi b/numpy/core/numerictypes.pyi
index eef4fef72..d10e4822a 100644
--- a/numpy/core/numerictypes.pyi
+++ b/numpy/core/numerictypes.pyi
@@ -46,7 +46,7 @@ from numpy.core._type_aliases import (
sctypes as sctypes,
)
-from numpy.typing import DTypeLike, ArrayLike, _DTypeLike
+from numpy._typing import DTypeLike, ArrayLike, _DTypeLike
_T = TypeVar("_T")
_SCT = TypeVar("_SCT", bound=generic)
diff --git a/numpy/core/records.pyi b/numpy/core/records.pyi
index 4eee93d87..d3bbe0e70 100644
--- a/numpy/core/records.pyi
+++ b/numpy/core/records.pyi
@@ -18,7 +18,7 @@ from numpy import (
_SupportsBuffer,
)
-from numpy.typing import (
+from numpy._typing import (
ArrayLike,
DTypeLike,
NDArray,
diff --git a/numpy/core/shape_base.pyi b/numpy/core/shape_base.pyi
index e2cf26075..cea355d44 100644
--- a/numpy/core/shape_base.pyi
+++ b/numpy/core/shape_base.pyi
@@ -2,7 +2,7 @@ from collections.abc import Sequence
from typing import TypeVar, overload, Any, SupportsIndex
from numpy import generic
-from numpy.typing import ArrayLike, NDArray, _ArrayLike
+from numpy._typing import ArrayLike, NDArray, _ArrayLike
_SCT = TypeVar("_SCT", bound=generic)
_ArrayType = TypeVar("_ArrayType", bound=NDArray[Any])