mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-28 04:24:53 +02:00
Fix minor typing issues.
This commit is contained in:
@@ -155,7 +155,7 @@ class LayerStacker(interfaces.automagic.AutomagicInterface):
|
||||
context: interfaces.context.ContextInterface,
|
||||
config_path: str,
|
||||
requirement: interfaces.configuration.RequirementInterface,
|
||||
stacked_layers: [str]) -> typing.Optional[typing.Tuple[str, str]]:
|
||||
stacked_layers: typing.List[str]) -> typing.Optional[typing.Tuple[str, str]]:
|
||||
"""Looks for translation layer requirements and attempts to apply the stacked layers to it. If it succeeds
|
||||
it returns the configuration path and layer name where the stacked nodes were spliced into the tree.
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ class Timeliner(plugins.PluginInterface):
|
||||
"""Takes a timeline, sorts it and output the data from each relevant row from each plugin"""
|
||||
for (timestamp, colname, timestamp_column, node, treegrid) in sorted(self.timeline, key = self.sortkey):
|
||||
# Render node data as string
|
||||
data = []
|
||||
data = [] # type: typing.List[str]
|
||||
# TODO: Ideally the text renderer could render a single row as a string, so we could reuse it here
|
||||
for column in treegrid.columns:
|
||||
data += [column.name + ": {}".format(getattr(node.values, treegrid.sanitize_name(column.name)))]
|
||||
|
||||
Reference in New Issue
Block a user