File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 33
33
shift_month ,
34
34
)
35
35
from pandas .errors import AbstractMethodError
36
- from pandas .util ._decorators import Appender , Substitution , cache_readonly
36
+ from pandas .util ._decorators import cache_readonly , doc
37
37
38
38
from pandas .core .dtypes .inference import is_list_like
39
39
@@ -1188,11 +1188,12 @@ class BusinessMonthBegin(MonthOffset):
1188
1188
_day_opt = "business_start"
1189
1189
1190
1190
1191
+ @doc (bound = "bound" )
1191
1192
class _CustomBusinessMonth (_CustomMixin , BusinessMixin , MonthOffset ):
1192
1193
"""
1193
1194
DateOffset subclass representing custom business month(s).
1194
1195
1195
- Increments between %( bound)s of month dates.
1196
+ Increments between { bound} of month dates.
1196
1197
1197
1198
Parameters
1198
1199
----------
@@ -1284,14 +1285,12 @@ def apply(self, other):
1284
1285
return result
1285
1286
1286
1287
1287
- @Substitution (bound = "end" )
1288
- @Appender (_CustomBusinessMonth .__doc__ )
1288
+ @doc (_CustomBusinessMonth , bound = "end" )
1289
1289
class CustomBusinessMonthEnd (_CustomBusinessMonth ):
1290
1290
_prefix = "CBM"
1291
1291
1292
1292
1293
- @Substitution (bound = "beginning" )
1294
- @Appender (_CustomBusinessMonth .__doc__ )
1293
+ @doc (_CustomBusinessMonth , bound = "beginning" )
1295
1294
class CustomBusinessMonthBegin (_CustomBusinessMonth ):
1296
1295
_prefix = "CBMS"
1297
1296
You can’t perform that action at this time.
0 commit comments