massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / bleach / bleach / html5lib_shim.pyi
1 from collections.abc import Generator, Iterable
2 from typing import Any
3
4 class HTMLParser(object):  # actually html5lib.HTMLParser
5     def __getattr__(self, __name: str) -> Any: ...  # incomplete
6
7 class Filter(object):  # actually html5lib.filters.base.Filter
8     def __getattr__(self, __name: str) -> Any: ...  # incomplete
9
10 class SanitizerFilter(object):  # actually html5lib.filters.sanitizer.Filter
11     def __getattr__(self, __name: str) -> Any: ...  # incomplete
12
13 class HTMLSerializer(object):  # actually html5lib.serializer.HTMLSerializer
14     def __getattr__(self, __name: str) -> Any: ...  # incomplete
15
16 class BleachHTMLParser(HTMLParser):
17     tags: list[str] | None
18     strip: bool
19     consume_entities: bool
20     def __init__(self, tags: Iterable[str] | None, strip: bool, consume_entities: bool, **kwargs) -> None: ...
21
22 class BleachHTMLSerializer(HTMLSerializer):
23     escape_rcdata: bool
24     def escape_base_amp(self, stoken: str) -> Generator[str, None, None]: ...
25     def serialize(self, treewalker, encoding: str | None = ...) -> Generator[str, None, None]: ...
26
27 def __getattr__(__name: str) -> Any: ...  # incomplete