mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
annotations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from __future__ import annotations
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
Reference in New Issue
Block a user