~tieong/notjinja2

7d2b699ad041a5f61a4cde5c5485c39faeb5a688 — Thomas Ieong 2 years ago e16b013
Added more types hint
1 files changed, 2 insertions(+), 2 deletions(-)

M notjinja2.py
M notjinja2.py => notjinja2.py +2 -2
@@ 113,7 113,7 @@ class Template:
            else:
                self.buffer.append(self.do_dots(token))

    def add_line(self, line) -> None:
    def add_line(self, line: str) -> None:
        self.code += " " * self.INDENT + line + "\n"

    def indent(self) -> None:


@@ 122,7 122,7 @@ class Template:
    def dedent(self) -> None:
        self.INDENT -= 4

    def render(self) -> str:
    def render(self):
        exec(self.code)
        return eval("template_render")(self.globs)