improved version

This commit is contained in:
Maxim Kurnikov
2018-07-29 20:06:41 +03:00
parent c180555415
commit 89bb6eac75
160 changed files with 1007 additions and 607 deletions

View File

@@ -14,11 +14,11 @@ class IfParser:
def expression(self, rbp: int = ...) -> Literal: ...
def next_token(self) -> Literal: ...
def parse(self) -> TemplateLiteral: ...
def translate_token(self, token: Union[List[int], str, int]) -> Literal: ...
def translate_token(self, token: Union[str, List[int], int]) -> Literal: ...
class Literal:
def __init__(self, value: Optional[int]) -> None: ...
def __repr__(self) -> str: ...
def eval(self, context: Dict[Any, Any]) -> Optional[Union[int, List[int]]]: ...
def eval(self, context: Dict[Any, Any]) -> Optional[Union[List[int], int]]: ...
def nud(self, parser: IfParser) -> Literal: ...