mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix typing
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from rich.console import Console, RenderableType
|
||||
from rich.protocol import rich_cast
|
||||
|
||||
@@ -7,7 +9,7 @@ def measure(
|
||||
renderable: RenderableType,
|
||||
default: int,
|
||||
*,
|
||||
container_width: int | None = None
|
||||
container_width: int | None = None,
|
||||
) -> int:
|
||||
"""Measure a rich renderable.
|
||||
|
||||
|
||||
@@ -193,8 +193,3 @@ def test_demo(snap_compare):
|
||||
press=["down", "down", "down", "_", "_", "_"],
|
||||
terminal_size=(100, 30),
|
||||
)
|
||||
|
||||
|
||||
def test_label_wrap(snap_compare):
|
||||
"""Test Label wrapping with a Panel"""
|
||||
assert snap_compare("snapshot_apps/label_wrap.py")
|
||||
|
||||
Reference in New Issue
Block a user