Move splitlines_like_git to a more appropriate home

This commit is contained in:
Kovid Goyal
2023-03-10 17:26:06 +05:30
parent ffa8c1c498
commit 7acc6bdeb8
5 changed files with 39 additions and 38 deletions

View File

@@ -1,7 +1,10 @@
from typing import List, Optional, Tuple
from typing import Callable, List, Optional, Tuple
from .collect import Segment
def splitlines_like_git(raw: bytes, callback: Callable[[memoryview], None]) -> None: ...
def split_with_highlights(
line: str, truncate_points: List[int], fg_highlights: List[Segment],
bg_highlight: Optional[Segment]