Skip to content

Commit 788534a

Browse files
committed
remove set_module and debugging
1 parent 0b07f66 commit 788534a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/_libs/tslibs/offsets.pyx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ from pandas._libs.tslibs.np_datetime cimport (
7777
pandas_datetime_to_datetimestruct,
7878
pydate_to_dtstruct,
7979
)
80-
from pandas.util._decorators import set_module
8180

8281
import_pandas_datetime()
8382

@@ -2706,7 +2705,6 @@ cdef class _YearEnd(YearOffset):
27062705
self._period_dtype_code = PeriodDtypeCode.A + self.month % 12
27072706

27082707

2709-
@set_module("pandas.tseries.offsets")
27102708
class YearEnd(_YearEnd):
27112709
"""
27122710
DateOffset increments between calendar year end dates.
@@ -2747,9 +2745,8 @@ class YearEnd(_YearEnd):
27472745
Timestamp('2022-12-31 00:00:00')
27482746
"""
27492747

2750-
def __new__(cls, fuck=None, normalize=False, month=None):
2751-
# this is a comment
2752-
return _YearEnd.__new__(cls, fuck, normalize, month)
2748+
def __new__(cls, n=1, normalize=False, month=None):
2749+
return _YearEnd.__new__(cls, n, normalize, month)
27532750

27542751

27552752
cdef class YearBegin(YearOffset):

0 commit comments

Comments
 (0)