Skip to content

Commit 06abda1

Browse files
Merge remote-tracking branch 'upstream/master' into follow-up-EA-getitem
2 parents 3d023db + 9b4dfa1 commit 06abda1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/indexes/datetimelike.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,10 +773,9 @@ def intersection(self, other, sort=False):
773773
else:
774774
lslice = slice(*left.slice_locs(start, end))
775775
left_chunk = left._values[lslice]
776-
# pandas\core\indexes\datetimelike.py:776: error: Argument 1 to
777-
# "_simple_new" of "DatetimeIndexOpsMixin" has incompatible type
778-
# "Union[ExtensionArray, Any]"; expected "Union[DatetimeArray,
779-
# TimedeltaArray, PeriodArray]" [arg-type]
776+
# error: Argument 1 to "_simple_new" of "DatetimeIndexOpsMixin" has
777+
# incompatible type "Union[ExtensionArray, Any]"; expected
778+
# "Union[DatetimeArray, TimedeltaArray, PeriodArray]" [arg-type]
780779
result = type(self)._simple_new(left_chunk) # type: ignore[arg-type]
781780

782781
return self._wrap_setop_result(other, result)

0 commit comments

Comments
 (0)