first version finished

This commit is contained in:
Maxim Kurnikov
2018-07-29 18:27:46 +03:00
parent a9f215bf64
commit c180555415
59 changed files with 2118 additions and 0 deletions

26
django/utils/jslex.pyi Normal file
View File

@@ -0,0 +1,26 @@
from typing import (
Dict,
Iterator,
List,
Optional,
Tuple,
)
def literals(choices: str, prefix: str = ..., suffix: str = ...) -> str: ...
def prepare_js_for_gettext(js: str) -> str: ...
class JsLexer:
def __init__(self) -> None: ...
class Lexer:
def __init__(self, states: Dict[str, List[Tok]], first: str) -> None: ...
def lex(self, text: str) -> Iterator[Tuple[str, str]]: ...
class Tok:
def __init__(self, name: str, regex: str, next: Optional[str] = ...) -> None: ...