@@ -51,7 +51,6 @@ from pandas._libs.tslibs.timezones cimport utc_pytz as UTC
51
51
from pandas._libs.tslibs.tzconversion cimport tz_convert_single
52
52
53
53
from .dtypes cimport PeriodDtypeCode
54
- from .fields import get_start_end_field
55
54
from .timedeltas cimport delta_to_nanoseconds
56
55
from .timedeltas import Timedelta
57
56
from .timestamps cimport _Timestamp
@@ -99,12 +98,6 @@ def apply_index_wraps(func):
99
98
# do @functools.wraps(func ) manually since it doesn't work on cdef funcs
100
99
wrapper.__name__ = func.__name__
101
100
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
108
101
return wrapper
109
102
110
103
@@ -159,12 +152,6 @@ def apply_wraps(func):
159
152
# do @functools.wraps(func) manually since it doesn't work on cdef funcs
160
153
wrapper.__name__ = func.__name__
161
154
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
168
155
return wrapper
169
156
170
157
@@ -355,8 +342,7 @@ class ApplyTypeError(TypeError):
355
342
356
343
cdef class BaseOffset:
357
344
"""
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.
360
346
"""
361
347
_day_opt = None
362
348
_attributes = tuple ([" n" , " normalize" ])
0 commit comments