From 4a302148f8be1cf7c8526aea11502912c62278bc Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 30 Jan 2023 15:08:14 +0100 Subject: [PATCH] fix typing --- src/textual/render.py | 4 +++- tests/snapshot_tests/test_snapshots.py | 5 ----- 2 files changed, 3 insertions(+), 6 deletions(-) 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")