We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18921e commit 3713e9aCopy full SHA for 3713e9a
pandas/core/arrays/timedeltas.py
@@ -748,12 +748,8 @@ def __rfloordiv__(self, other):
748
return result
749
750
elif is_object_dtype(other.dtype):
751
- # error: Incompatible types in assignment (expression has type
752
- # "List[Any]", variable has type "ndarray")
753
- result = [ # type: ignore[assignment]
754
- other[n] // self[n] for n in range(len(self))
755
- ]
756
- result = np.array(result)
+ result_list = [other[n] // self[n] for n in range(len(self))]
+ result = np.array(result_list)
757
758
759
else:
0 commit comments