Skip to content

Commit 5753819

Browse files
authored
DEPR: enforce deprecations on DateOffset methods (#48685)
* DEPR: enforce deprecations on DateOffset methods * mypy fixup * fix asv * move whatsnew
1 parent b44f1cd commit 5753819

File tree

11 files changed

+21
-321
lines changed

11 files changed

+21
-321
lines changed

asv_bench/benchmarks/tslibs/offsets.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,8 @@ def setup(self, offset):
7171
self.date = datetime(2011, 1, 1)
7272
self.dt64 = np.datetime64("2011-01-01 09:00Z")
7373

74-
def time_apply(self, offset):
75-
offset.apply(self.date)
76-
77-
def time_apply_np_dt64(self, offset):
78-
offset.apply(self.dt64)
74+
def time_add_np_dt64(self, offset):
75+
offset + self.dt64
7976

8077
def time_add(self, offset):
8178
self.date + offset

0 commit comments

Comments
 (0)