| 1 | from collections.abc import Callable |
| 2 | from typing import Any |
| 3 | |
| 4 | class Tag: |
| 5 | name: str |
| 6 | bold: bool |
| 7 | italic: bool |
| 8 | lang: str | None |
| 9 | |
| 10 | def __init__(self, name: str, bold: bool | None = None, italic: bool | None = None, lang: str | None = None) -> None: |
| 11 | "Tag" |
| 12 | pass |
| 13 | |
| 14 | def copy(self) -> Tag: |
| 15 | "copy() -> Return a copy of this Tag" |
| 16 | pass |
| 17 | |
| 18 | class State: |
| 19 | tag_being_defined: Tag | None |
| 20 | tags: list[Tag] |
| 21 | is_bold: bool |
| 22 | is_italic: bool |
| 23 | current_lang: str | None |
| 24 | parse: int |
| 25 | css_formats: Any |
| 26 | sub_parser_state: Any |
| 27 | default_lang: str | None |
| 28 | attribute_name: str | None |
| 29 | |
| 30 | def __init__( |
| 31 | self, |
| 32 | tag_being_defined: Tag | None = None, |
| 33 | tags: list[Tag] | None = None, |
| 34 | is_bold: bool = False, |
| 35 | is_italic: bool = False, |
| 36 | current_lang: str | None = None, |
| 37 | parse: int = 0, |
| 38 | css_formats: Any = None, |
| 39 | sub_parser_state: Any = None, |
| 40 | default_lang: str | None = None, |
| 41 | attribute_name: str | None = None, |
| 42 | ) -> None: |
| 43 | "State" |
| 44 | pass |
| 45 | |
| 46 | def copy(self) -> State: |
| 47 | "copy() -> Return a copy of this Tag" |
| 48 | pass |
| 49 | |
| 50 | bold_tags: frozenset[str] |
| 51 | italic_tags: frozenset[str] |
| 52 | |
| 53 | def init(spell_property: Callable[..., Any], recognized: Callable[..., Any], split: Callable[..., Any]) -> None: |
| 54 | "init()\n\n Initialize this module" |
| 55 | pass |
| 56 | |
| 57 | def check_spelling(text: str, text_len: int, fmt: Any, locale: Any, sfmt: Any, store_locale: bool) -> tuple[tuple[int, Any], ...]: |
| 58 | "html_check_spelling()\n\n Speedup inner loop for spell check" |
| 59 | pass |