From 2e50cde2e70961ba22334778bb867e609dc1462f Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 11 Apr 2018 20:50:11 +0100 Subject: [PATCH] Fix minor typing issues. --- volatility/framework/automagic/stacker.py | 2 +- volatility/plugins/timeliner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/volatility/framework/automagic/stacker.py b/volatility/framework/automagic/stacker.py index c3501c504..f0b1f0279 100644 --- a/volatility/framework/automagic/stacker.py +++ b/volatility/framework/automagic/stacker.py @@ -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. diff --git a/volatility/plugins/timeliner.py b/volatility/plugins/timeliner.py index 306b1cd4b..fefb26888 100644 --- a/volatility/plugins/timeliner.py +++ b/volatility/plugins/timeliner.py @@ -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)))]