diff --git a/src/textual/render.py b/src/textual/render.py index 6d5dbc326..8911c4263 100644 --- a/src/textual/render.py +++ b/src/textual/render.py @@ -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. diff --git a/tests/snapshot_tests/test_snapshots.py b/tests/snapshot_tests/test_snapshots.py index 7374899cf..868bd91aa 100644 --- a/tests/snapshot_tests/test_snapshots.py +++ b/tests/snapshot_tests/test_snapshots.py @@ -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")