We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af14631 commit e65a30eCopy full SHA for e65a30e
pandas/_libs/tslibs/timedeltas.pyx
@@ -235,7 +235,7 @@ cpdef int64_t delta_to_nanoseconds(
235
236
cdef:
237
NPY_DATETIMEUNIT in_reso
238
- int64_t n, value, factor
+ int64_t n
239
240
if is_tick_object(delta):
241
n = delta.n
@@ -278,8 +278,6 @@ cpdef int64_t delta_to_nanoseconds(
278
f"Cannot cast {str(delta)} to unit={unit_str} without overflow."
279
) from err
280
281
- return value
282
-
283
284
@cython.overflowcheck(True)
285
cdef object ensure_td64ns(object ts):
0 commit comments