--- /dev/null
+from typing import Any, IO, Sequence, Tuple, Union, List, Dict\r
+\r
+DEFAULTSECT = ... # type: str\r
+MAX_INTERPOLATION_DEPTH = ... # type: int\r
+\r
+class Error(Exception):\r
+ message = ... # type: Any\r
+ def __init__(self, msg: str = ...) -> None: ...\r
+ def _get_message(self) -> None: ...\r
+ def _set_message(self, value: str) -> None: ...\r
+ def __repr__(self) -> str: ...\r
+ def __str__(self) -> str: ...\r
+\r
+class NoSectionError(Error):\r
+ section = ... # type: str\r
+ def __init__(self, section: str) -> None: ...\r
+\r
+class DuplicateSectionError(Error):\r
+ section = ... # type: str\r
+ def __init__(self, section: str) -> None: ...\r
+\r
+class NoOptionError(Error):\r
+ section = ... # type: str\r
+ option = ... # type: str\r
+ def __init__(self, option: str, section: str) -> None: ...\r
+\r
+class InterpolationError(Error):\r
+ section = ... # type: str\r
+ option = ... # type: str\r
+ msg = ... # type: str\r
+ def __init__(self, option: str, section: str, msg: str) -> None: ...\r
+\r
+class InterpolationMissingOptionError(InterpolationError):\r
+ reference = ... # type: str\r
+ def __init__(self, option: str, section: str, rawval: str, reference: str) -> None: ...\r
+\r
+class InterpolationSyntaxError(InterpolationError): ...\r
+\r
+class InterpolationDepthError(InterpolationError):\r
+ def __init__(self, option: str, section: str, rawval: str) -> None: ...\r
+\r
+class ParsingError(Error):\r
+ filename = ... # type: str\r
+ errors = ... # type: List[Tuple[Any, Any]]\r
+ def __init__(self, filename: str) -> None: ...\r
+ def append(self, lineno: Any, line: Any) -> None: ...\r
+\r
+class MissingSectionHeaderError(ParsingError):\r
+ lineno = ... # type: Any\r
+ line = ... # type: Any\r
+ def __init__(self, filename: str, lineno: Any, line: Any) -> None: ...\r
+\r
+\r
+class RawConfigParser:\r
+ _dict = ... # type: Any\r
+ _sections = ... # type: dict\r
+ _defaults = ... # type: dict\r
+ _optcre = ... # type: Any\r
+ SECTCRE = ... # type: Any\r
+ OPTCRE = ... # type: Any\r
+ OPTCRE_NV = ... # type: Any\r
+ def __init__(self, defaults: Dict[Any, Any] = ..., dict_type: Any = ..., allow_no_value: bool = ...) -> None: ...\r
+ def defaults(self) -> Dict[Any, Any]: ...\r
+ def sections(self) -> List[str]: ...\r
+ def add_section(self, section: str) -> None: ...\r
+ def has_section(self, section: str) -> bool: ...\r
+ def options(self, section: str) -> List[str]: ...\r
+ def read(self, filenames: Union[str, Sequence[str]]) -> List[str]: ...\r
+ def readfp(self, fp: IO[str], filename: str = ...) -> None: ...\r
+ def get(self, section: str, option: str) -> str: ...\r
+ def items(self, section: str) -> List[Tuple[Any, Any]]: ...\r
+ def _get(self, section: str, conv: type, option: str) -> Any: ...\r
+ def getint(self, section: str, option: str) -> int: ...\r
+ def getfloat(self, section: str, option: str) -> float: ...\r
+ _boolean_states = ... # type: Dict[str, bool]\r
+ def getboolean(self, section: str, option: str) -> bool: ...\r
+ def optionxform(self, optionstr: str) -> str: ...\r
+ def has_option(self, section: str, option: str) -> bool: ...\r
+ def set(self, section: str, option: str, value: Any = ...) -> None: ...\r
+ def write(self, fp: IO[str]) -> None: ...\r
+ def remove_option(self, section: str, option: Any) -> bool: ...\r
+ def remove_section(self, section: str) -> bool: ...\r
+ def _read(self, fp: IO[str], fpname: str) -> None: ...\r
+\r
+class ConfigParser(RawConfigParser):\r
+ _KEYCRE = ... # type: Any\r
+ def get(self, section: str, option: str, raw: bool = ..., vars: dict = ...) -> Any: ...\r
+ def items(self, section: str, raw: bool = ..., vars: dict = ...) -> List[Tuple[str, Any]]: ...\r
+ def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...\r
+ def _interpolation_replace(self, match: Any) -> str: ...\r
+\r
+class SafeConfigParser(ConfigParser):\r
+ _interpvar_re = ... # type: Any\r
+ def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...\r
+ def _interpolate_some(self, option: str, accum: list, rest: str, section: str, map: dict, depth: int) -> None: ...\r