Skip to content

Commit

Permalink
Backport PR #34718 on branch 1.0.x (Removed __div__ impls) (#34802)
Browse files Browse the repository at this point in the history
Co-authored-by: William Ayd <will_ayd@innobi.io>
  • Loading branch information
simonjayhawkins and WillAyd authored Jun 15, 2020
1 parent 7ad5e99 commit 281f178
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions pandas/_libs/interval.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,6 @@ cdef class Interval(IntervalMixin):
return Interval(y.left * self, y.right * self, closed=y.closed)
return NotImplemented

def __div__(self, y):
if isinstance(y, numbers.Number):
return Interval(self.left / y, self.right / y, closed=self.closed)
return NotImplemented

def __truediv__(self, y):
if isinstance(y, numbers.Number):
return Interval(self.left / y, self.right / y, closed=self.closed)
Expand Down
3 changes: 0 additions & 3 deletions pandas/_libs/tslibs/nattype.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ cdef class _NaT(datetime):
def __neg__(self):
return NaT

def __div__(self, other):
return _nat_divide_op(self, other)

def __truediv__(self, other):
return _nat_divide_op(self, other)

Expand Down

0 comments on commit 281f178

Please sign in to comment.