From f8363b456f1ab31ee56abad579b215af195093d5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 May 2024 22:18:28 +0200 Subject: Adding upstream version 9.11.0. Signed-off-by: Daniel Baumann --- tools/stress_test_pretty.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tools/stress_test_pretty.py (limited to 'tools/stress_test_pretty.py') diff --git a/tools/stress_test_pretty.py b/tools/stress_test_pretty.py new file mode 100644 index 0000000..eb27f33 --- /dev/null +++ b/tools/stress_test_pretty.py @@ -0,0 +1,19 @@ +from rich.console import Console +from rich.panel import Panel +from rich.pretty import Pretty + +DATA = { + "foo": [1, 2, 3, (), {}, (1, 2, 3), {4, 5, 6, (7, 8, 9)}, "Hello, World"], + "bar": [None, (False, True)] * 2, + "Dune": { + "names": { + "Paul Atriedies", + "Vladimir Harkonnen", + "Thufir Haway", + "Duncan Idaho", + } + }, +} +console = Console() +for w in range(130): + console.print(Panel(Pretty(DATA, indent_guides=True), width=w)) -- cgit v1.2.3