Skip to content

Commit f6f1210

Browse files
committed
add strict arg to interval.py
1 parent 1863adb commit f6f1210

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/core/indexes/interval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,8 @@ def _intersection_non_unique(self, other: IntervalIndex) -> IntervalIndex:
10561056
first_nan_loc = np.arange(len(self))[self.isna()][0]
10571057
mask[first_nan_loc] = True
10581058

1059-
other_tups = set(zip(other.left, other.right))
1060-
for i, tup in enumerate(zip(self.left, self.right)):
1059+
other_tups = set(zip(other.left, other.right, strict=True))
1060+
for i, tup in enumerate(zip(self.left, self.right, strict=True)):
10611061
if tup in other_tups:
10621062
mask[i] = True
10631063

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ exclude = [
452452
"pandas/core/groupby/groupby.py" = ["B905"]
453453
"pandas/core/groupby/grouper.py" = ["B905"]
454454
"pandas/core/groupby/ops.py" = ["B905"]
455-
"pandas/core/indexes/interval.py" = ["B905"]
456455
"pandas/core/indexes/multi.py" = ["B905"]
457456
"pandas/core/methods/to_dict.py" = ["B905"]
458457
"pandas/core/reshape/concat.py" = ["B905"]

0 commit comments

Comments
 (0)