File tree 4 files changed +10
-18
lines changed
4 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 120
120
Frequency = Union [str , "DateOffset" ]
121
121
Axes = Collection [Any ]
122
122
123
- # BitGenerator isn't exposed until 1.18
124
- if TYPE_CHECKING :
125
- RandomState = Union [
126
- int ,
127
- ArrayLike ,
128
- np .random .Generator ,
129
- np .random .BitGenerator ,
130
- np .random .RandomState ,
131
- ]
123
+ RandomState = Union [
124
+ int ,
125
+ ArrayLike ,
126
+ np .random .Generator ,
127
+ np .random .BitGenerator ,
128
+ np .random .RandomState ,
129
+ ]
132
130
133
131
# dtypes
134
132
NpDtype = Union [str , np .dtype ]
Original file line number Diff line number Diff line change 32
32
AnyArrayLike ,
33
33
ArrayLike ,
34
34
NpDtype ,
35
+ RandomState ,
35
36
Scalar ,
36
37
T ,
37
38
)
52
53
from pandas .core .dtypes .missing import isna
53
54
54
55
if TYPE_CHECKING :
55
- # Includes BitGenerator, which only exists >= 1.18
56
- from pandas ._typing import RandomState
57
-
58
56
from pandas import Index
59
57
60
58
Original file line number Diff line number Diff line change 47
47
JSONSerializable ,
48
48
Level ,
49
49
Manager ,
50
+ RandomState ,
50
51
Renamer ,
51
52
StorageOptions ,
52
53
T ,
157
158
if TYPE_CHECKING :
158
159
159
160
from pandas ._libs .tslibs import BaseOffset
160
- from pandas ._typing import RandomState
161
161
162
162
from pandas .core .frame import DataFrame
163
163
from pandas .core .resample import Resampler
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ class providing the base-class of operations.
18
18
from textwrap import dedent
19
19
import types
20
20
from typing import (
21
- TYPE_CHECKING ,
22
21
Callable ,
23
22
Hashable ,
24
23
Iterable ,
@@ -47,6 +46,7 @@ class providing the base-class of operations.
47
46
F ,
48
47
FrameOrSeries ,
49
48
IndexLabel ,
49
+ RandomState ,
50
50
Scalar ,
51
51
T ,
52
52
final ,
@@ -109,10 +109,6 @@ class providing the base-class of operations.
109
109
maybe_use_numba ,
110
110
)
111
111
112
- if TYPE_CHECKING :
113
-
114
- from pandas ._typing import RandomState
115
-
116
112
_common_see_also = """
117
113
See Also
118
114
--------
You can’t perform that action at this time.
0 commit comments