@@ -26,8 +26,6 @@ from pandas.tseries.holiday import AbstractHolidayCalendar
26
26
_DatetimeT = TypeVar ("_DatetimeT" , bound = datetime )
27
27
_TimedeltaT = TypeVar ("_TimedeltaT" , bound = timedelta )
28
28
29
- prefix_mapping : dict [str , type ]
30
-
31
29
class ApplyTypeError (TypeError ): ...
32
30
33
31
class BaseOffset :
@@ -96,9 +94,6 @@ class BaseOffset:
96
94
def __getstate__ (self ): ...
97
95
@property
98
96
def nanos (self ) -> int : ...
99
- def onOffset (self , dt : datetime ) -> bool : ...
100
- def isAnchored (self ) -> bool : ...
101
- def is_anchored (self ) -> bool : ...
102
97
103
98
class SingleConstructorOffset (BaseOffset ):
104
99
def __reduce__ (self ): ...
@@ -110,8 +105,6 @@ class Tick(SingleConstructorOffset):
110
105
@property
111
106
def nanos (self ) -> int : ...
112
107
113
- def delta_to_tick (delta : timedelta ) -> Tick : ...
114
-
115
108
class Day (Tick ): ...
116
109
class Hour (Tick ): ...
117
110
class Minute (Tick ): ...
@@ -123,19 +116,14 @@ class Nano(Tick): ...
123
116
class RelativeDeltaOffset (BaseOffset ):
124
117
def __init__ (self , n : int = ..., normalize : bool = ..., ** kwds : Any ) -> None : ...
125
118
126
- class BusinessMixin (SingleConstructorOffset ):
127
- def __init__ (
128
- self , n : int = ..., normalize : bool = ..., offset : timedelta = ...
129
- ) -> None : ...
130
-
131
119
# Changed from implementation because it is not allowed for `PeriodDtype`
132
120
class BusinessDay (BaseOffset ):
133
121
def __init__ (
134
122
self , n : int = ..., normalize : bool = ..., offset : timedelta = ...
135
123
) -> None : ...
136
124
def __reduce__ (self ): ...
137
125
138
- class BusinessHour (BusinessMixin ):
126
+ class BusinessHour (SingleConstructorOffset ):
139
127
def __init__ (
140
128
self ,
141
129
n : int = ...,
@@ -209,7 +197,7 @@ class FY5253(FY5253Mixin): ...
209
197
class FY5253Quarter (FY5253Mixin ): ...
210
198
class Easter (SingleConstructorOffset ): ...
211
199
212
- class _CustomBusinessMonth (BusinessMixin ):
200
+ class _CustomBusinessMonth (SingleConstructorOffset ):
213
201
def __init__ (
214
202
self ,
215
203
n : int = ...,
@@ -274,10 +262,3 @@ BMonthBegin = BusinessMonthBegin
274
262
CBMonthEnd = CustomBusinessMonthEnd
275
263
CBMonthBegin = CustomBusinessMonthBegin
276
264
CDay = CustomBusinessDay
277
-
278
- def roll_qtrday (
279
- other : datetime , n : int , month : int , day_opt : str , modby : int
280
- ) -> int : ...
281
- def shift_months (
282
- dtindex : npt .NDArray [np .int64 ], months : int , day_opt : str | None = ...
283
- ) -> npt .NDArray [np .int64 ]: ...
0 commit comments