|
| 1 | +import optparse |
| 2 | +from configparser import RawConfigParser |
| 3 | +from typing import Any, ClassVar, Optional, Tuple |
| 4 | + |
| 5 | +from docutils import SettingsSpec |
| 6 | +from docutils.utils import DependencyList |
| 7 | + |
| 8 | +__docformat__: str |
| 9 | + |
| 10 | +def store_multiple(option, opt, value, parser, *args, **kwargs) -> None: ... |
| 11 | +def read_config_file(option, opt, value, parser) -> None: ... |
| 12 | +def validate_encoding(setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ...): ... |
| 13 | +def validate_encoding_error_handler( |
| 14 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 15 | +): ... |
| 16 | +def validate_encoding_and_error_handler( |
| 17 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 18 | +): ... |
| 19 | +def validate_boolean( |
| 20 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 21 | +) -> bool: ... |
| 22 | +def validate_nonnegative_int( |
| 23 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 24 | +) -> int: ... |
| 25 | +def validate_threshold( |
| 26 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 27 | +) -> int: ... |
| 28 | +def validate_colon_separated_string_list( |
| 29 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 30 | +) -> list[str]: ... |
| 31 | +def validate_comma_separated_list( |
| 32 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 33 | +) -> list[str]: ... |
| 34 | +def validate_url_trailing_slash( |
| 35 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 36 | +) -> str: ... |
| 37 | +def validate_dependency_file( |
| 38 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 39 | +) -> DependencyList: ... |
| 40 | +def validate_strip_class( |
| 41 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 42 | +): ... |
| 43 | +def validate_smartquotes_locales( |
| 44 | + setting, value, option_parser, config_parser: Optional[Any] = ..., config_section: Optional[Any] = ... |
| 45 | +) -> list[tuple[str, str]]: ... |
| 46 | +def make_paths_absolute(pathdict, keys, base_path: Optional[Any] = ...) -> None: ... |
| 47 | +def make_one_path_absolute(base_path, path) -> str: ... |
| 48 | +def filter_settings_spec(settings_spec, *exclude, **replace) -> Tuple[Any, ...]: ... |
| 49 | + |
| 50 | +class Values(optparse.Values): |
| 51 | + def update(self, other_dict, option_parser) -> None: ... |
| 52 | + def copy(self) -> Values: ... |
| 53 | + |
| 54 | +class Option(optparse.Option): ... |
| 55 | + |
| 56 | +class OptionParser(optparse.OptionParser, SettingsSpec): |
| 57 | + standard_config_files: ClassVar[list[str]] |
| 58 | + threshold_choices: ClassVar[list[str]] |
| 59 | + thresholds: ClassVar[dict[str, int]] |
| 60 | + booleans: ClassVar[dict[str, bool]] |
| 61 | + default_error_encoding: ClassVar[str] |
| 62 | + default_error_encoding_error_handler: ClassVar[str] |
| 63 | + config_section: ClassVar[str] |
| 64 | + version_template: ClassVar[str] |
| 65 | + def __getattr__(self, name: str) -> Any: ... # incomplete |
| 66 | + |
| 67 | +class ConfigParser(RawConfigParser): |
| 68 | + def __getattr__(self, name: str) -> Any: ... # incomplete |
| 69 | + |
| 70 | +class ConfigDeprecationWarning(DeprecationWarning): ... |
0 commit comments