massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / bleach / bleach / __init__.pyi
1 from collections.abc import Container, Iterable
2 from typing import Any
3
4 from bleach.linkifier import DEFAULT_CALLBACKS as DEFAULT_CALLBACKS, Linker as Linker, _Callback
5 from bleach.sanitizer import (
6     ALLOWED_ATTRIBUTES as ALLOWED_ATTRIBUTES,
7     ALLOWED_PROTOCOLS as ALLOWED_PROTOCOLS,
8     ALLOWED_STYLES as ALLOWED_STYLES,
9     ALLOWED_TAGS as ALLOWED_TAGS,
10     Cleaner as Cleaner,
11     _Attributes,
12 )
13
14 __all__ = ["clean", "linkify"]
15
16 __releasedate__: str
17 __version__: str
18 VERSION: Any  # packaging.version.Version
19
20 def clean(
21     text: str,
22     tags: Container[str] = ...,
23     attributes: _Attributes = ...,
24     styles: Container[str] = ...,
25     protocols: Container[str] = ...,
26     strip: bool = ...,
27     strip_comments: bool = ...,
28 ) -> str: ...
29 def linkify(
30     text: str, callbacks: Iterable[_Callback] = ..., skip_tags: Container[str] | None = ..., parse_email: bool = ...
31 ) -> str: ...