annotations

This commit is contained in:
Will McGugan
2022-06-21 14:11:18 +01:00
parent ad0507cb27
commit 4f6a71bc33
2 changed files with 4 additions and 3 deletions

View File

@@ -100,11 +100,11 @@ class ChopsUpdate:
def __init__(
self, chops: list[dict[int, list[Segment] | None]], crop: Region
) -> None:
"""Apply spans, which consist of a tuple of (LINE, OFFSET, SEGMENTS)
"""A renderable which updates chops (fragments of lines).
Args:
spans (list[tuple[int, int, list[Segment]]]): A list of spans.
crop_y (int): The y extent of the crop region
chops (list[dict[int, list[Segment] | None]]): A mapping of offsets to list of segments, per line.
crop (Region): Region to restrict update to.
"""
self.chops = chops
self.crop = crop

View File

@@ -1,3 +1,4 @@
from __future__ import annotations
from __future__ import unicode_literals
import pytest