diff --git a/src/rapids_pre_commit_hooks/lint.py b/src/rapids_pre_commit_hooks/lint.py index 670a6a7..d10cbff 100644 --- a/src/rapids_pre_commit_hooks/lint.py +++ b/src/rapids_pre_commit_hooks/lint.py @@ -211,15 +211,15 @@ def __init__(self, pos: _PosType) -> None: self.pos: _PosType = pos def __lt__(self, other: object) -> bool: - assert isinstance(other, LineComparator) + assert isinstance(other, int) return self.pos[1] < other def __gt__(self, other: object) -> bool: - assert isinstance(other, LineComparator) + assert isinstance(other, int) return self.pos[0] > other def __eq__(self, other: object) -> bool: - assert isinstance(other, LineComparator) + assert isinstance(other, int) return self.pos[0] <= other <= self.pos[1] line_index = bisect.bisect_left(