Skip to content

Commit 7240ed4

Browse files
authored
Removed __div__ impls (#34718)
1 parent db7876b commit 7240ed4

File tree

5 files changed

+3
-12
lines changed

5 files changed

+3
-12
lines changed

ci/deps/azure-37-locale.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ dependencies:
55
- python=3.7.*
66

77
# tools
8-
# Cython pin for https://github.com/pandas-dev/pandas/issues/34704
9-
- cython==0.29.19
8+
- cython>=0.29.16
109
- pytest>=5.0.1
1110
- pytest-xdist>=1.21
1211
- pytest-asyncio

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- asv
1313

1414
# building
15-
- cython=0.29.19
15+
- cython>=0.29.16
1616

1717
# code checks
1818
- black=19.10b0

pandas/_libs/interval.pyx

-5
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,6 @@ cdef class Interval(IntervalMixin):
424424
return Interval(y.left * self, y.right * self, closed=y.closed)
425425
return NotImplemented
426426

427-
def __div__(self, y):
428-
if isinstance(y, numbers.Number):
429-
return Interval(self.left / y, self.right / y, closed=self.closed)
430-
return NotImplemented
431-
432427
def __truediv__(self, y):
433428
if isinstance(y, numbers.Number):
434429
return Interval(self.left / y, self.right / y, closed=self.closed)

pandas/_libs/tslibs/nattype.pyx

-3
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,6 @@ cdef class _NaT(datetime):
221221
def __neg__(self):
222222
return NaT
223223

224-
def __div__(self, other):
225-
return _nat_divide_op(self, other)
226-
227224
def __truediv__(self, other):
228225
return _nat_divide_op(self, other)
229226

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ numpy>=1.15
55
python-dateutil>=2.7.3
66
pytz
77
asv
8-
cython==0.29.19
8+
cython>=0.29.16
99
black==19.10b0
1010
cpplint
1111
flake8<3.8.0

0 commit comments

Comments
 (0)