From 56039ef8932f702fb9e26b8dec96e6692a5e48b3 Mon Sep 17 00:00:00 2001 From: Silas Kraume Date: Thu, 1 Aug 2024 14:54:13 +0200 Subject: [PATCH] added type hint --- babi/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babi/file.py b/babi/file.py index f3b9b32..2a09313 100644 --- a/babi/file.py +++ b/babi/file.py @@ -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())