Skip to content

Commit b01c17f

Browse files
committed
CLI: Fix bad typing issue in pretty printer
Fixes #1759
1 parent 0fb721e commit b01c17f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

volatility3/cli/text_renderer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,9 @@ def visitor(
466466
accumulator.append((node.path_depth, line))
467467
return accumulator
468468

469-
final_output: List[Tuple[int, Dict[interfaces.renderers.Column, str]]] = []
469+
final_output: List[Tuple[int, Dict[interfaces.renderers.Column, list[str]]]] = (
470+
[]
471+
)
470472
if not grid.populated:
471473
grid.populate(visitor, final_output)
472474
else:
@@ -503,7 +505,9 @@ def visitor(
503505
if column in ignore_columns:
504506
del line[column]
505507
else:
506-
line[column] = line[column] + ("" * (nums_line - len(line[column])))
508+
line[column] = line[column] + (
509+
[""] * (nums_line - len(line[column]))
510+
)
507511
for index in range(nums_line):
508512
if index == 0:
509513
outfd.write(

0 commit comments

Comments
 (0)