add jinja macro fields (#3548)

This commit is contained in:
Jacob Beck
2019-12-18 10:56:06 -07:00
committed by Sebastian Rittau
parent c0c780a758
commit 9d61baa7be

View File

@@ -1,3 +1,4 @@
import typing
from typing import Any, Optional
class Impossible(Exception): ...
@@ -54,6 +55,10 @@ class If(Stmt):
class Macro(Stmt):
fields: Any
name: str
args: typing.List[Any]
defaults: typing.List[Any]
body: typing.List[Any]
class CallBlock(Stmt):
fields: Any