Skip to content

Commit 4e6e857

Browse files
committed
update Appender to doc in period.py
1 parent f20331d commit 4e6e857

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/indexes/period.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pandas._libs.tslibs.parsing import parse_time_string
1111
from pandas._libs.tslibs.period import Period
1212
from pandas._typing import DtypeObj, Label
13-
from pandas.util._decorators import Appender, cache_readonly
13+
from pandas.util._decorators import Appender, cache_readonly, doc
1414

1515
from pandas.core.dtypes.common import (
1616
ensure_platform_int,
@@ -327,7 +327,7 @@ def _engine(self):
327327
period = weakref.ref(self)
328328
return self._engine_type(period, len(self))
329329

330-
@Appender(Index.__contains__.__doc__)
330+
@doc(Index.__contains__)
331331
def __contains__(self, key: Any) -> bool:
332332
if isinstance(key, Period):
333333
if key.freq != self.freq:
@@ -405,7 +405,7 @@ def asof_locs(self, where, mask: np.ndarray) -> np.ndarray:
405405

406406
return result
407407

408-
@Appender(Index.astype.__doc__)
408+
@doc(Index.astype)
409409
def astype(self, dtype, copy=True, how="start"):
410410
dtype = pandas_dtype(dtype)
411411

0 commit comments

Comments
 (0)