Skip to content
Closed
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/master' into follow-up-EA-getitem
  • Loading branch information
simonjayhawkins committed Nov 17, 2020
commit 06abda1217a72b0c1e401eb4eba9d85e672a63af
7 changes: 3 additions & 4 deletions pandas/core/indexes/datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,9 @@ def intersection(self, other, sort=False):
else:
lslice = slice(*left.slice_locs(start, end))
left_chunk = left._values[lslice]
# pandas\core\indexes\datetimelike.py:776: error: Argument 1 to
# "_simple_new" of "DatetimeIndexOpsMixin" has incompatible type
# "Union[ExtensionArray, Any]"; expected "Union[DatetimeArray,
# TimedeltaArray, PeriodArray]" [arg-type]
# error: Argument 1 to "_simple_new" of "DatetimeIndexOpsMixin" has
# incompatible type "Union[ExtensionArray, Any]"; expected
# "Union[DatetimeArray, TimedeltaArray, PeriodArray]" [arg-type]
result = type(self)._simple_new(left_chunk) # type: ignore[arg-type]

return self._wrap_setop_result(other, result)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.