Skip to content

Commit

Permalink
DEPR: enforce deprecations on DateOffset methods (#48685)
Browse files Browse the repository at this point in the history
* DEPR: enforce deprecations on DateOffset methods

* mypy fixup

* fix asv

* move whatsnew
  • Loading branch information
jbrockmendel committed Oct 24, 2022
1 parent b44f1cd commit 5753819
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 321 deletions.
7 changes: 2 additions & 5 deletions asv_bench/benchmarks/tslibs/offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ def setup(self, offset):
self.date = datetime(2011, 1, 1)
self.dt64 = np.datetime64("2011-01-01 09:00Z")

def time_apply(self, offset):
offset.apply(self.date)

def time_apply_np_dt64(self, offset):
offset.apply(self.dt64)
def time_add_np_dt64(self, offset):
offset + self.dt64

def time_add(self, offset):
self.date + offset
Expand Down

0 comments on commit 5753819

Please sign in to comment.