mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 20:24:31 +08:00
26 lines
518 B
Python
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: ... |