@@ -51,7 +51,6 @@ from pandas._libs.tslibs.timezones cimport utc_pytz as UTC
5151from pandas._libs.tslibs.tzconversion cimport tz_convert_single
5252
5353from .dtypes cimport PeriodDtypeCode
54- from .fields import get_start_end_field
5554from .timedeltas cimport delta_to_nanoseconds
5655from .timedeltas import Timedelta
5756from .timestamps cimport _Timestamp
@@ -99,12 +98,6 @@ def apply_index_wraps(func):
9998 # do @functools.wraps(func ) manually since it doesn't work on cdef funcs
10099 wrapper.__name__ = func.__name__
101100 wrapper.__doc__ = func.__doc__
102- try:
103- wrapper.__module__ = func.__module__
104- except AttributeError:
105- # AttributeError: 'method_descriptor' object has no
106- # attribute '__module__'
107- pass
108101 return wrapper
109102
110103
@@ -159,12 +152,6 @@ def apply_wraps(func):
159152 # do @functools.wraps(func) manually since it doesn't work on cdef funcs
160153 wrapper.__name__ = func.__name__
161154 wrapper.__doc__ = func.__doc__
162- try :
163- wrapper.__module__ = func.__module__
164- except AttributeError :
165- # AttributeError: 'method_descriptor' object has no
166- # attribute '__module__'
167- pass
168155 return wrapper
169156
170157
@@ -355,8 +342,7 @@ class ApplyTypeError(TypeError):
355342
356343cdef class BaseOffset:
357344 """
358- Base class for DateOffset methods that are not overridden by subclasses
359- and will (after pickle errors are resolved) go into a cdef class.
345+ Base class for DateOffset methods that are not overridden by subclasses.
360346 """
361347 _day_opt = None
362348 _attributes = tuple ([" n" , " normalize" ])
0 commit comments