Skip to content
Snippets Groups Projects
Commit 2ae24f48 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Lint

parent d553c705
No related branches found
No related tags found
No related merge requests found
Pipeline #17716 failed
......@@ -253,7 +253,10 @@ class JinjaCppFile(Node):
assert self.TEMPLATE, f"Template of {self.__class__} must be set"
render_dict = {k: (self._print(v) if not isinstance(v, (pystencils.Field, pystencils.TypedSymbol)) else v)
if not isinstance(v, Iterable) or isinstance(v, str)
else [(self._print(a) if not isinstance(a, (pystencils.Field, pystencils.TypedSymbol)) else a) for a in v]
else [(self._print(a)
if not isinstance(a, (pystencils.Field, pystencils.TypedSymbol))
else a)
for a in v]
for k, v in self.ast_dict.items()}
render_dict.update({"headers": pystencils.backends.cbackend.get_headers(self)})
render_dict.update({"globals": pystencils.backends.cbackend.get_global_declarations(self)})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment