From c6bcd8050cefe268514a4d4ddc56666dbae4825b Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Thu, 11 Jun 2020 13:31:40 -0700 Subject: [PATCH] Removed __div__ impls --- ci/deps/azure-37-locale.yaml | 3 +-- environment.yml | 2 +- pandas/_libs/interval.pyx | 5 ----- pandas/_libs/tslibs/nattype.pyx | 3 --- requirements-dev.txt | 2 +- 5 files changed, 3 insertions(+), 12 deletions(-) diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 25ee821afe7bd..31155ac93931a 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -5,8 +5,7 @@ dependencies: - python=3.7.* # tools - # Cython pin for https://github.com/pandas-dev/pandas/issues/34704 - - cython==0.29.19 + - cython>=0.29.16 - pytest>=5.0.1 - pytest-xdist>=1.21 - pytest-asyncio diff --git a/environment.yml b/environment.yml index bfe0e78c891cf..b81404094fa4c 100644 --- a/environment.yml +++ b/environment.yml @@ -12,7 +12,7 @@ dependencies: - asv # building - - cython=0.29.19 + - cython>=0.29.16 # code checks - black=19.10b0 diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index b5f5ef0a3f593..95881ebf1385c 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -424,11 +424,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) diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index f079c5157eeb3..71f151e6eb876 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -221,9 +221,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) diff --git a/requirements-dev.txt b/requirements-dev.txt index 791dc7cd79128..754ec7ae28748 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,7 +5,7 @@ numpy>=1.15 python-dateutil>=2.7.3 pytz asv -cython==0.29.19 +cython>=0.29.16 black==19.10b0 cpplint flake8<3.8.0