Skip to content

Commit eb23db0

Browse files
committed
remove assertion
1 parent a68826d commit eb23db0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pandas/core/indexes/datetimelike.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,6 @@ def __sub__(self, other):
709709
# Array/Index of DateOffset objects
710710
return self._sub_offset_array(other)
711711
elif isinstance(self, TimedeltaIndex) and isinstance(other, Index):
712-
assert not is_timedelta64_dtype(other)
713712
# We checked above for timedelta64_dtype(other) so this
714713
# must be invalid.
715714
raise TypeError("cannot subtract TimedeltaIndex and {typ}"

0 commit comments

Comments
 (0)