|
| 1 | +from enchant.errors import * |
| 2 | +from enchant.pypwl import PyPWL as PyPWL |
| 3 | +from enchant.utils import EnchantStr as EnchantStr, UTF16EnchantStr as UTF16EnchantStr, get_default_language as get_default_language |
| 4 | +from typing import Any, List, Tuple |
| 5 | + |
| 6 | +class warnings: |
| 7 | + def warn(self, *args: Any, **kwds: Any) -> None: ... |
| 8 | + |
| 9 | +class ProviderDesc: |
| 10 | + name: str = ... |
| 11 | + desc: str = ... |
| 12 | + file: str = ... |
| 13 | + def __init__(self, name: str, desc: str, file: str) -> None: ... |
| 14 | + def __eq__(self, pd: Any) -> bool: ... |
| 15 | + def __hash__(self) -> int: ... |
| 16 | + |
| 17 | +class _EnchantObject: |
| 18 | + def __init__(self) -> None: ... |
| 19 | + |
| 20 | +class Broker(_EnchantObject): |
| 21 | + def __init__(self) -> None: ... |
| 22 | + def __del__(self) -> None: ... |
| 23 | + def request_dict(self, tag: str = ...) -> Dict: ... |
| 24 | + def request_pwl_dict(self, pwl: str) -> Dict: ... |
| 25 | + def dict_exists(self, tag: str) -> bool: ... |
| 26 | + def set_ordering(self, tag: str, ordering: str) -> None: ... |
| 27 | + def describe(self) -> List[ProviderDesc]: ... |
| 28 | + def list_dicts(self) -> List[Tuple[str, ProviderDesc]]: ... |
| 29 | + def list_languages(self) -> List[str]: ... |
| 30 | + def get_param(self, name: str) -> Any: ... |
| 31 | + def set_param(self, name: str, value: Any) -> None: ... |
| 32 | + |
| 33 | +class Dict(_EnchantObject): |
| 34 | + provider: ProviderDesc = ... |
| 35 | + tag: str = ... |
| 36 | + def __init__(self, tag: str = ..., broker: Broker = ...) -> None: ... |
| 37 | + def __del__(self) -> None: ... |
| 38 | + def check(self, word: str) -> bool: ... |
| 39 | + def suggest(self, word: str) -> List[str]: ... |
| 40 | + def add(self, word: str) -> None: ... |
| 41 | + def remove(self, word: str) -> None: ... |
| 42 | + def add_to_pwl(self, word: str) -> None: ... |
| 43 | + def add_to_session(self, word: str) -> None: ... |
| 44 | + def remove_from_session(self, word: str) -> None: ... |
| 45 | + def is_added(self, word: str) -> bool: ... |
| 46 | + def is_removed(self, word: str) -> bool: ... |
| 47 | + def store_replacement(self, mis: str, cor: str) -> None: ... |
| 48 | + |
| 49 | +class DictWithPWL(Dict): |
| 50 | + pwl: Dict = ... |
| 51 | + pel: Dict = ... |
| 52 | + def __init__(self, tag: str, pwl: str = ..., pel: str = ..., broker: Broker = ...) -> None: ... |
| 53 | + def check(self, word: str) -> bool: ... |
| 54 | + def suggest(self, word: str) -> List[str]: ... |
| 55 | + def add(self, word: str) -> None: ... |
| 56 | + def remove(self, word: str) -> None: ... |
| 57 | + def add_to_pwl(self, word: str) -> None: ... |
| 58 | + def is_added(self, word: str) -> bool: ... |
| 59 | + def is_removed(self, word: str) -> bool: ... |
| 60 | + |
| 61 | +def request_dict(self, tag: str = ...) -> Dict: ... |
| 62 | +def request_pwl_dict(self, pwl: str) -> Dict: ... |
| 63 | +def dict_exists(tag: str) -> bool: ... |
| 64 | +def list_dicts() -> List[Tuple[str, ProviderDesc]]: ... |
| 65 | +def list_languages() -> List[str]: ... |
| 66 | +def get_param(name: str) -> Any: ... |
| 67 | +def set_param(name: str, value: Any) -> None: ... |
| 68 | + |
| 69 | +def get_enchant_version() -> str: ... |
| 70 | +def set_prefix_dir(path: str) -> None: ... |
| 71 | +def get_user_config_dir() -> str: ... |
0 commit comments