massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / html5lib / html5lib / filters / sanitizer.pyi
1 from typing import Any
2
3 from . import base
4
5 class Filter(base.Filter):
6     allowed_elements: Any
7     allowed_attributes: Any
8     allowed_css_properties: Any
9     allowed_css_keywords: Any
10     allowed_svg_properties: Any
11     allowed_protocols: Any
12     allowed_content_types: Any
13     attr_val_is_uri: Any
14     svg_attr_val_allows_ref: Any
15     svg_allow_local_href: Any
16     def __init__(
17         self,
18         source,
19         allowed_elements=...,
20         allowed_attributes=...,
21         allowed_css_properties=...,
22         allowed_css_keywords=...,
23         allowed_svg_properties=...,
24         allowed_protocols=...,
25         allowed_content_types=...,
26         attr_val_is_uri=...,
27         svg_attr_val_allows_ref=...,
28         svg_allow_local_href=...,
29     ) -> None: ...
30     def __iter__(self): ...
31     def sanitize_token(self, token): ...
32     def allowed_token(self, token): ...
33     def disallowed_token(self, token): ...
34     def sanitize_css(self, style): ...