From b01c17f419266a71a3554d82e9d4aaa280785e9a Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 3 Apr 2025 16:24:44 +0100 Subject: [PATCH] CLI: Fix bad typing issue in pretty printer Fixes #1759 --- volatility3/cli/text_renderer.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/volatility3/cli/text_renderer.py b/volatility3/cli/text_renderer.py index 3fd804d1b..044f33ed1 100644 --- a/volatility3/cli/text_renderer.py +++ b/volatility3/cli/text_renderer.py @@ -466,7 +466,9 @@ class PrettyTextRenderer(CLIRenderer): accumulator.append((node.path_depth, line)) return accumulator - final_output: List[Tuple[int, Dict[interfaces.renderers.Column, str]]] = [] + final_output: List[Tuple[int, Dict[interfaces.renderers.Column, list[str]]]] = ( + [] + ) if not grid.populated: grid.populate(visitor, final_output) else: @@ -503,7 +505,9 @@ class PrettyTextRenderer(CLIRenderer): if column in ignore_columns: del line[column] else: - line[column] = line[column] + ("" * (nums_line - len(line[column]))) + line[column] = line[column] + ( + [""] * (nums_line - len(line[column])) + ) for index in range(nums_line): if index == 0: outfd.write(