fix typing

This commit is contained in:
Will McGugan
2023-01-30 15:08:14 +01:00
parent 15d4341bc0
commit 4a302148f8
2 changed files with 3 additions and 6 deletions

View File

@@ -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.

View File

@@ -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")