Files
django-stubs/django/utils/jslex.pyi
2018-07-29 18:27:46 +03:00

26 lines
518 B
Python

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: ...