massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / html / parser.pyi
1 from typing import List, Tuple\r
2 from _markupbase import ParserBase\r
3 import sys\r
4 \r
5 class HTMLParser(ParserBase):\r
6     if sys.version_info >= (3, 5):\r
7         def __init__(self, *, convert_charrefs: bool = ...) -> None: ...\r
8     else:\r
9         def __init__(self, strict: bool = ..., *,\r
10                      convert_charrefs: bool = ...) -> None: ...\r
11     def feed(self, feed: str) -> None: ...\r
12     def close(self) -> None: ...\r
13     def reset(self) -> None: ...\r
14     def getpos(self) -> Tuple[int, int]: ...\r
15     def get_starttag_text(self) -> str: ...\r
16 \r
17     def handle_starttag(self, tag: str,\r
18                         attrs: List[Tuple[str, str]]) -> None: ...\r
19     def handle_endtag(self, tag: str) -> None: ...\r
20     def handle_startendtag(self, tag: str,\r
21                            attrs: List[Tuple[str, str]]) -> None: ...\r
22     def handle_data(self, data: str) -> None: ...\r
23     def handle_entityref(self, name: str) -> None: ...\r
24     def handle_charref(self, name: str) -> None: ...\r
25     def handle_comment(self, data: str) -> None: ...\r
26     def handle_decl(self, decl: str) -> None: ...\r
27     def handle_pi(self, data: str) -> None: ...\r
28     def unknown_decl(self, data: str) -> None: ...\r
29 \r
30 if sys.version_info < (3, 5):\r
31     class HTMLParseError(Exception): ...\r