Skip to content

Commit

Permalink
added type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Aug 1, 2024
1 parent f41152d commit 56039ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babi/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def __init__(
def __iter__(self) -> _SearchIter:
return self

def calc_past_original_offset(self, y: int, match: Match[str], replacement: str):
def calc_past_original_offset(self, y: int, match: Match[str], replacement: str) -> None:
if not self.wrapped or y != self._start_y:
return
self.original_line_change_diff += len(replacement) - (match.end()-match.start())
Expand Down

0 comments on commit 56039ef

Please sign in to comment.