massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / html5lib / html5lib / html5parser.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/html5lib/html5lib/html5parser.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/html5lib/html5lib/html5parser.pyi
new file mode 100644 (file)
index 0000000..d7a873d
--- /dev/null
@@ -0,0 +1,57 @@
+from _typeshed import SupportsRead
+from typing import Any, overload
+from typing_extensions import Literal
+from xml.etree.ElementTree import Element
+
+@overload
+def parse(
+    doc: str | bytes | SupportsRead[str] | SupportsRead[bytes],
+    treebuilder: Literal["etree"] = ...,
+    namespaceHTMLElements: bool = ...,
+    **kwargs,
+) -> Element: ...
+@overload
+def parse(
+    doc: str | bytes | SupportsRead[str] | SupportsRead[bytes], treebuilder: str, namespaceHTMLElements: bool = ..., **kwargs
+): ...
+def parseFragment(doc, container: str = ..., treebuilder: str = ..., namespaceHTMLElements: bool = ..., **kwargs): ...
+def method_decorator_metaclass(function): ...
+
+class HTMLParser:
+    strict: Any
+    tree: Any
+    errors: Any
+    phases: Any
+    def __init__(
+        self, tree: Any | None = ..., strict: bool = ..., namespaceHTMLElements: bool = ..., debug: bool = ...
+    ) -> None: ...
+    firstStartTag: bool
+    log: Any
+    compatMode: str
+    innerHTML: Any
+    phase: Any
+    lastPhase: Any
+    beforeRCDataPhase: Any
+    framesetOK: bool
+    def reset(self) -> None: ...
+    @property
+    def documentEncoding(self) -> str | None: ...
+    def isHTMLIntegrationPoint(self, element) -> bool: ...
+    def isMathMLTextIntegrationPoint(self, element) -> bool: ...
+    def mainLoop(self) -> None: ...
+    def parse(self, stream, scripting: bool = ..., **kwargs): ...
+    def parseFragment(self, stream, *args, **kwargs): ...
+    def parseError(self, errorcode: str = ..., datavars: Any | None = ...) -> None: ...
+    def adjustMathMLAttributes(self, token) -> None: ...
+    def adjustSVGAttributes(self, token) -> None: ...
+    def adjustForeignAttributes(self, token) -> None: ...
+    def reparseTokenNormal(self, token) -> None: ...
+    def resetInsertionMode(self) -> None: ...
+    originalPhase: Any
+    def parseRCDataRawtext(self, token, contentType) -> None: ...
+
+def getPhases(debug): ...
+def adjust_attributes(token, replacements) -> None: ...
+def impliedTagToken(name, type: str = ..., attributes: Any | None = ..., selfClosing: bool = ...): ...
+
+class ParseError(Exception): ...