Skip to content

Commit 405589b

Browse files
committed
CLN: @doc - offsets.py
1 parent 9a4abae commit 405589b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/tseries/offsets.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
shift_month,
3434
)
3535
from pandas.errors import AbstractMethodError
36-
from pandas.util._decorators import Appender, Substitution, cache_readonly
36+
from pandas.util._decorators import cache_readonly, doc
3737

3838
from pandas.core.dtypes.inference import is_list_like
3939

@@ -1199,7 +1199,7 @@ class _CustomBusinessMonth(_CustomMixin, BusinessMixin, MonthOffset):
11991199
"""
12001200
DateOffset subclass representing custom business month(s).
12011201
1202-
Increments between %(bound)s of month dates.
1202+
Increments between {bound} of month dates.
12031203
12041204
Parameters
12051205
----------
@@ -1291,14 +1291,12 @@ def apply(self, other):
12911291
return result
12921292

12931293

1294-
@Substitution(bound="end")
1295-
@Appender(_CustomBusinessMonth.__doc__)
1294+
@doc(_CustomBusinessMonth, bound="end")
12961295
class CustomBusinessMonthEnd(_CustomBusinessMonth):
12971296
_prefix = "CBM"
12981297

12991298

1300-
@Substitution(bound="beginning")
1301-
@Appender(_CustomBusinessMonth.__doc__)
1299+
@doc(_CustomBusinessMonth, bound="beginning")
13021300
class CustomBusinessMonthBegin(_CustomBusinessMonth):
13031301
_prefix = "CBMS"
13041302

0 commit comments

Comments
 (0)