From fd01786ea4c7dde540cede258ad11d08d25bacfc Mon Sep 17 00:00:00 2001 From: Bas van Beek <43369155+BvB93@users.noreply.github.com> Date: Wed, 7 Oct 2020 18:53:33 +0200 Subject: MAINT: Move aliases for common scalar unions to `numpy.typing` (#17429) * MAINT: Move the `Like` unions to `numpy.typing` --- numpy/core/fromnumeric.pyi | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'numpy/core/fromnumeric.pyi') diff --git a/numpy/core/fromnumeric.pyi b/numpy/core/fromnumeric.pyi index 6b3d2268f..3167d12b9 100644 --- a/numpy/core/fromnumeric.pyi +++ b/numpy/core/fromnumeric.pyi @@ -10,9 +10,6 @@ from numpy import ( generic, _OrderKACF, _OrderACF, - _IntLike, - _BoolLike, - _NumberLike, _ArrayLikeBool, _ArrayLikeIntOrBool, _ModeKind, @@ -20,7 +17,15 @@ from numpy import ( _SortKind, _SortSide, ) -from numpy.typing import DtypeLike, ArrayLike, _ShapeLike, _Shape +from numpy.typing import ( + DtypeLike, + ArrayLike, + _ShapeLike, + _Shape, + _IntLike, + _BoolLike, + _NumberLike, +) if sys.version_info >= (3, 8): from typing import Literal -- cgit v1.2.1