Fix type hint

This commit is contained in:
Tulir Asokan 2020-12-11 20:14:23 +02:00
parent b213481d7d
commit 821e670fd5

View file

@ -76,7 +76,7 @@ class Template:
tpl = tpl[:match.start()] + val + tpl[match.end():] tpl = tpl[:match.start()] + val + tpl[match.end():]
return tpl return tpl
def execute(self, evt: Event, rule_vars: Dict[str, JinjaTemplate], extra_vars: Dict[str, str] def execute(self, evt: Event, rule_vars: Dict[str, Any], extra_vars: Dict[str, str]
) -> Dict[str, Any]: ) -> Dict[str, Any]:
variables = extra_vars variables = extra_vars
for name, template in chain(rule_vars.items(), self.variables.items()): for name, template in chain(rule_vars.items(), self.variables.items()):