Fix issues reported by ruff

This commit is contained in:
Kovid Goyal
2023-01-09 15:54:41 +05:30
parent d248d5ad75
commit a068e3e655
4 changed files with 32 additions and 28 deletions

View File

@@ -68,8 +68,8 @@ def marker_from_text(expression: str, color: int) -> MarkerFunc:
def marker_from_function(func: Callable[[str], Iterable[Tuple[int, int, int]]]) -> MarkerFunc:
def marker(text: str, left_address: int, right_address: int, color_address: int) -> Generator[None, None, None]:
left, right, colorv = get_output_variables(left_address, right_address, color_address)
for (l, r, c) in func(text):
left.value = l
for (ll, r, c) in func(text):
left.value = ll
right.value = r
colorv.value = c
yield