summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/random/_generator.pyi3
-rw-r--r--numpy/random/bit_generator.pyi2
-rw-r--r--numpy/random/mtrand.pyi6
3 files changed, 4 insertions, 7 deletions
diff --git a/numpy/random/_generator.pyi b/numpy/random/_generator.pyi
index 51a231049..6b1a6f4af 100644
--- a/numpy/random/_generator.pyi
+++ b/numpy/random/_generator.pyi
@@ -1,5 +1,5 @@
import sys
-from typing import Any, Callable, Dict, Literal, Optional, Sequence, Tuple, Type, Union, overload
+from typing import Any, Callable, Dict, Optional, Tuple, Type, Union, overload
from numpy import (
bool_,
@@ -23,7 +23,6 @@ from numpy.typing import (
ArrayLike,
_ArrayLikeFloat_co,
_ArrayLikeInt_co,
- _BoolCodes,
_DoubleCodes,
_DTypeLikeBool,
_DTypeLikeInt,
diff --git a/numpy/random/bit_generator.pyi b/numpy/random/bit_generator.pyi
index 7f066dbfa..5b68dde6c 100644
--- a/numpy/random/bit_generator.pyi
+++ b/numpy/random/bit_generator.pyi
@@ -19,7 +19,7 @@ from typing import (
)
from numpy import dtype, ndarray, uint32, uint64
-from numpy.typing import _ArrayLikeInt_co, _ShapeLike, _SupportsDType, _UInt64Codes, _UInt32Codes
+from numpy.typing import _ArrayLikeInt_co, _ShapeLike, _SupportsDType, _UInt32Codes, _UInt64Codes
if sys.version_info >= (3, 8):
from typing import Literal
diff --git a/numpy/random/mtrand.pyi b/numpy/random/mtrand.pyi
index 8c5391b6e..fc61f7b50 100644
--- a/numpy/random/mtrand.pyi
+++ b/numpy/random/mtrand.pyi
@@ -1,6 +1,5 @@
-from numpy.random.bit_generator import BitGenerator
import sys
-from typing import Any, Callable, Dict, Literal, Optional, Sequence, Tuple, Type, Union, overload
+from typing import Any, Callable, Dict, Optional, Tuple, Type, Union, overload
from numpy import (
bool_,
@@ -19,12 +18,11 @@ from numpy import (
uint32,
uint64,
)
-from numpy.random import BitGenerator, SeedSequence
+from numpy.random.bit_generator import BitGenerator
from numpy.typing import (
ArrayLike,
_ArrayLikeFloat_co,
_ArrayLikeInt_co,
- _BoolCodes,
_DoubleCodes,
_DTypeLikeBool,
_DTypeLikeInt,