@@ -9,9 +9,7 @@ from typing import (
9
9
Any ,
10
10
Collection ,
11
11
Literal ,
12
- Tuple ,
13
12
TypeVar ,
14
- Union ,
15
13
overload ,
16
14
)
17
15
@@ -101,7 +99,7 @@ def _get_offset(name: str) -> BaseOffset: ...
101
99
102
100
class SingleConstructorOffset (BaseOffset ):
103
101
@classmethod
104
- def _from_name (cls , suffix = ...): ...
102
+ def _from_name (cls , suffix : None = ...): ...
105
103
def __reduce__ (self ): ...
106
104
107
105
@overload
@@ -132,7 +130,7 @@ class RelativeDeltaOffset(BaseOffset):
132
130
class BusinessMixin (SingleConstructorOffset ):
133
131
def __init__ (
134
132
self , n : int = ..., normalize : bool = ..., offset : timedelta = ...
135
- ): ...
133
+ ) -> None : ...
136
134
137
135
class BusinessDay (BusinessMixin ): ...
138
136
@@ -144,14 +142,17 @@ class BusinessHour(BusinessMixin):
144
142
start : str | Collection [str ] = ...,
145
143
end : str | Collection [str ] = ...,
146
144
offset : timedelta = ...,
147
- ): ...
145
+ ) -> None : ...
148
146
149
- class WeekOfMonthMixin (SingleConstructorOffset ): ...
147
+ class WeekOfMonthMixin (SingleConstructorOffset ):
148
+ def __init__ (
149
+ self , n : int = ..., normalize : bool = ..., weekday : int = ...
150
+ ) -> None : ...
150
151
151
152
class YearOffset (SingleConstructorOffset ):
152
153
def __init__ (
153
154
self , n : int = ..., normalize : bool = ..., month : int | None = ...
154
- ): ...
155
+ ) -> None : ...
155
156
156
157
class BYearEnd (YearOffset ): ...
157
158
class BYearBegin (YearOffset ): ...
@@ -186,7 +187,11 @@ class Week(SingleConstructorOffset):
186
187
self , n : int = ..., normalize : bool = ..., weekday : int | None = ...
187
188
) -> None : ...
188
189
189
- class WeekOfMonth (WeekOfMonthMixin ): ...
190
+ class WeekOfMonth (WeekOfMonthMixin ):
191
+ def __init__ (
192
+ self , n : int = ..., normalize : bool = ..., week : int = ..., weekday : int = ...
193
+ ) -> None : ...
194
+
190
195
class LastWeekOfMonth (WeekOfMonthMixin ): ...
191
196
192
197
class FY5253Mixin (SingleConstructorOffset ):
@@ -196,41 +201,58 @@ class FY5253Mixin(SingleConstructorOffset):
196
201
normalize : bool = ...,
197
202
weekday : int = ...,
198
203
startingMonth : int = ...,
199
- variation : str = ...,
204
+ variation : Literal [ "nearest" , "last" ] = ...,
200
205
) -> None : ...
201
206
202
207
class FY5253 (FY5253Mixin ): ...
203
- class FY5253Quarter (FY5253Mixin ): ...
208
+
209
+ class FY5253Quarter (FY5253Mixin ):
210
+ def __init__ (
211
+ self ,
212
+ n : int = ...,
213
+ normalize : bool = ...,
214
+ weekday : int = ...,
215
+ startingMonth : int = ...,
216
+ qtr_with_extra_week : int = ...,
217
+ variation : Literal ["nearest" , "last" ] = ...,
218
+ ) -> None : ...
219
+
204
220
class Easter (SingleConstructorOffset ): ...
205
221
206
222
class _CustomBusinessMonth (BusinessMixin ):
207
223
def __init__ (
208
224
self ,
209
225
n : int = ...,
210
226
normalize : bool = ...,
227
+ weekmask : str = ...,
228
+ holidays : list | None = ...,
229
+ calendar : np .busdaycalendar | None = ...,
211
230
offset : timedelta = ...,
212
- holidays : None | list = ...,
213
- ): ...
231
+ ) -> None : ...
214
232
215
233
class CustomBusinessDay (BusinessDay ):
216
234
def __init__ (
217
235
self ,
218
236
n : int = ...,
219
237
normalize : bool = ...,
220
- offset : timedelta = ...,
221
238
weekmask : str = ...,
222
- ): ...
239
+ holidays : list | None = ...,
240
+ calendar : np .busdaycalendar | None = ...,
241
+ offset : timedelta = ...,
242
+ ) -> None : ...
223
243
224
244
class CustomBusinessHour (BusinessHour ):
225
245
def __init__ (
226
246
self ,
227
247
n : int = ...,
228
248
normalize : bool = ...,
249
+ weekmask : str = ...,
250
+ holidays : list | None = ...,
251
+ calendar : np .busdaycalendar | None = ...,
229
252
start : str = ...,
230
253
end : str = ...,
231
254
offset : timedelta = ...,
232
- holidays : None | list = ...,
233
- ): ...
255
+ ) -> None : ...
234
256
235
257
class CustomBusinessMonthEnd (_CustomBusinessMonth ): ...
236
258
class CustomBusinessMonthBegin (_CustomBusinessMonth ): ...
0 commit comments