Skip to content

Commit 2211736

Browse files
committed
resolved mypy errors
1 parent 9814800 commit 2211736

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/reshape/tile.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from typing import (
55
Any,
66
Callable,
7+
Literal,
8+
Union,
79
)
810

911
import numpy as np
@@ -417,7 +419,7 @@ def _bins_to_cuts(
417419
else:
418420
bins = unique_bins
419421

420-
side = "left" if right else "right"
422+
side: Union[Literal["left"], Literal["right"]] = "left" if right else "right"
421423
ids = ensure_platform_int(bins.searchsorted(x, side=side))
422424

423425
if include_lowest:

0 commit comments

Comments
 (0)