Skip to content

Commit 22e1068

Browse files
committed
add strict arg to interval.py
1 parent 5cc3240 commit 22e1068

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
@@ -462,7 +462,6 @@ exclude = [
462462
"pandas/core/groupby/groupby.py" = ["B905"]
463463
"pandas/core/groupby/grouper.py" = ["B905"]
464464
"pandas/core/groupby/ops.py" = ["B905"]
465-
"pandas/core/indexes/interval.py" = ["B905"]
466465
"pandas/core/indexes/multi.py" = ["B905"]
467466
"pandas/core/indexing.py" = ["B905"]
468467
"pandas/core/methods/to_dict.py" = ["B905"]

0 commit comments

Comments
 (0)