Fix minor typing issues.

This commit is contained in:
Mike Auty
2018-04-11 20:50:11 +01:00
parent 8ac434ade9
commit 2e50cde2e7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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)))]