Fix wrong type for parse_until in template parser (#460)

This commit is contained in:
Alexander Viklund
2020-09-12 00:58:09 +02:00
committed by GitHub
parent 6e5f5f2cdb
commit 34b126e3da

View File

@@ -109,7 +109,7 @@ class Parser:
builtins: Optional[List[Library]] = ...,
origin: Optional[Origin] = ...,
) -> None: ...
def parse(self, parse_until: Optional[Tuple[str]] = ...) -> NodeList: ...
def parse(self, parse_until: Optional[Tuple[str, ...]] = ...) -> NodeList: ...
def skip_past(self, endtag: str) -> None: ...
def extend_nodelist(self, nodelist: NodeList, node: Node, token: Token) -> None: ...
def error(self, token: Token, e: Union[Exception, str]) -> Exception: ...