mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Add more type annotations
This commit is contained in:
parent
9c2f96f7eb
commit
6f19fd5912
5 changed files with 23 additions and 17 deletions
|
|
@ -209,7 +209,7 @@ def truncate_points(line: str, width: int) -> Generator[int, None, None]:
|
|||
break
|
||||
|
||||
|
||||
def split_with_highlights(line: str, width: int, highlights: List, bg_highlight: Optional[Segment] = None) -> List:
|
||||
def split_with_highlights(line: str, width: int, highlights: List[Segment], bg_highlight: Optional[Segment] = None) -> List[str]:
|
||||
truncate_pts = list(truncate_points(line, width))
|
||||
return _split_with_highlights(line, truncate_pts, highlights, bg_highlight)
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ def hunk_title(hunk_num: int, hunk: Hunk, margin_size: int, available_cols: int)
|
|||
def render_half_line(
|
||||
line_number: int,
|
||||
line: str,
|
||||
highlights: List,
|
||||
highlights: List[Segment],
|
||||
ltype: str,
|
||||
margin_size: int,
|
||||
available_cols: int,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue