Debian Codegraph @

stubs/calibre_extensions/tokenizer.pyi

raw
1 from typing import Any
2
3 class Token:
4 is_container: bool
5 type: str
6 _as_css: str
7 value: Any
8 unit: str | None
9 line: int
10 column: int
11 def __init__(self, type: str, as_css: str, value: Any, unit: str | None, line: int, column: int) -> None:
12 "Token"
13 pass
14 def as_css(self) -> str:
15 "as_css() -> Return the CSS representation of this token"
16 pass
17
18 def tokenize_flat(css_source: str, ignore_comments: bool) -> list[Token]:
19 "tokenize_flat(css_source, ignore_comments)\n\n Convert CSS source into a flat list of tokens"
20 pass
21
22 def init(
23 compiled_token_regexps: Any,
24 unicode_unescape: Any,
25 newline_unescape: Any,
26 simple_unescape: Any,
27 find_newlines: Any,
28 token_dispatch: Any,
29 compiled_token_indexes: dict[str, int],
30 colon: str,
31 scolon: str,
32 lpar: str,
33 rpar: str,
34 lbrace: str,
35 rbrace: str,
36 lbox: str,
37 rbox: str,
38 delim_tok: str,
39 integer: str,
40 string_tok: str,
41 ) -> None:
42 "init()\n\nInitialize the module."
43 pass
44
45 def cleanup() -> None:
46 "cleanup()\n\nRelease resources allocated by init(). Safe to call multiple times."
47 pass