Files
django-stubs/django-stubs-generated/utils/jslex.pyi
2018-11-10 17:49:18 +03:00

30 lines
763 B
Python

from typing import Any, Dict, Iterator, List, Optional, Tuple
class Tok:
num: int = ...
id: int = ...
name: str = ...
regex: str = ...
next: Optional[str] = ...
def __init__(
self, name: str, regex: str, next: Optional[str] = ...
) -> None: ...
def literals(choices: str, prefix: str = ..., suffix: str = ...) -> str: ...
class Lexer:
regexes: Any = ...
toks: Any = ...
state: Any = ...
def __init__(self, states: Dict[str, List[Tok]], first: str) -> None: ...
def lex(self, text: str) -> Iterator[Tuple[str, str]]: ...
class JsLexer(Lexer):
both_before: Any = ...
both_after: Any = ...
states: Any = ...
def __init__(self) -> None: ...
def prepare_js_for_gettext(js: str) -> str: ...