@@ -26,10 +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
- class ApplyTypeError (TypeError ): ...
32
-
33
29
class BaseOffset :
34
30
n : int
35
31
def __init__ (self , n : int = ..., normalize : bool = ...) -> None : ...
@@ -96,9 +92,6 @@ class BaseOffset:
96
92
def __getstate__ (self ): ...
97
93
@property
98
94
def nanos (self ) -> int : ...
99
- def onOffset (self , dt : datetime ) -> bool : ...
100
- def isAnchored (self ) -> bool : ...
101
- def is_anchored (self ) -> bool : ...
102
95
103
96
class SingleConstructorOffset (BaseOffset ):
104
97
def __reduce__ (self ): ...
@@ -110,8 +103,6 @@ class Tick(SingleConstructorOffset):
110
103
@property
111
104
def nanos (self ) -> int : ...
112
105
113
- def delta_to_tick (delta : timedelta ) -> Tick : ...
114
-
115
106
class Day (Tick ): ...
116
107
class Hour (Tick ): ...
117
108
class Minute (Tick ): ...
@@ -123,19 +114,14 @@ class Nano(Tick): ...
123
114
class RelativeDeltaOffset (BaseOffset ):
124
115
def __init__ (self , n : int = ..., normalize : bool = ..., ** kwds : Any ) -> None : ...
125
116
126
- class BusinessMixin (SingleConstructorOffset ):
127
- def __init__ (
128
- self , n : int = ..., normalize : bool = ..., offset : timedelta = ...
129
- ) -> None : ...
130
-
131
117
# Changed from implementation because it is not allowed for `PeriodDtype`
132
118
class BusinessDay (BaseOffset ):
133
119
def __init__ (
134
120
self , n : int = ..., normalize : bool = ..., offset : timedelta = ...
135
121
) -> None : ...
136
122
def __reduce__ (self ): ...
137
123
138
- class BusinessHour ( BusinessMixin ) :
124
+ class BusinessHour :
139
125
def __init__ (
140
126
self ,
141
127
n : int = ...,
@@ -209,7 +195,7 @@ class FY5253(FY5253Mixin): ...
209
195
class FY5253Quarter (FY5253Mixin ): ...
210
196
class Easter (SingleConstructorOffset ): ...
211
197
212
- class _CustomBusinessMonth ( BusinessMixin ) :
198
+ class _CustomBusinessMonth :
213
199
def __init__ (
214
200
self ,
215
201
n : int = ...,
@@ -274,10 +260,3 @@ BMonthBegin = BusinessMonthBegin
274
260
CBMonthEnd = CustomBusinessMonthEnd
275
261
CBMonthBegin = CustomBusinessMonthBegin
276
262
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