- commit
- cd7a9e415369e5bb55c0e9ae653aa7f68803cb66
- parent
- 0df86877fe7277396b51bc012fef695a4d973bef
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-07-09 05:54
fixup types
Diffstat
| M | stache.py | 6 | +++--- |
1 files changed, 3 insertions, 3 deletions
diff --git a/stache.py b/stache.py
@@ -19,11 +19,11 @@ class Node: 19 19 file: str 20 20 line: str 21 21 lineno: int22 -1 children: list-1 22 children: list[Node] 23 23 24 24 25 25 class TemplateError(Exception):26 -1 def __str__(self):-1 26 def __str__(self) -> str: 27 27 node = self.args[0] 28 28 return f'"{node.token}" in {node.file}:{node.lineno}' 29 29 @@ -69,7 +69,7 @@ def get_template(path: str, indent: str = '') -> list[Node]: 69 69 return parse(fh.read(), path) 70 70 71 7172 -1 def is_standalone(line):-1 72 def is_standalone(line: str) -> bool: 73 73 nodes = list(tokenize(line, '')) 74 74 return ( 75 75 len(nodes) == 3