massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / xml / dom / __init__.pyi
1 from typing import Any
2
3 from .domreg import getDOMImplementation as getDOMImplementation, registerDOMImplementation as registerDOMImplementation
4
5 class Node:
6     ELEMENT_NODE: int
7     ATTRIBUTE_NODE: int
8     TEXT_NODE: int
9     CDATA_SECTION_NODE: int
10     ENTITY_REFERENCE_NODE: int
11     ENTITY_NODE: int
12     PROCESSING_INSTRUCTION_NODE: int
13     COMMENT_NODE: int
14     DOCUMENT_NODE: int
15     DOCUMENT_TYPE_NODE: int
16     DOCUMENT_FRAGMENT_NODE: int
17     NOTATION_NODE: int
18
19 # ExceptionCode
20 INDEX_SIZE_ERR: int
21 DOMSTRING_SIZE_ERR: int
22 HIERARCHY_REQUEST_ERR: int
23 WRONG_DOCUMENT_ERR: int
24 INVALID_CHARACTER_ERR: int
25 NO_DATA_ALLOWED_ERR: int
26 NO_MODIFICATION_ALLOWED_ERR: int
27 NOT_FOUND_ERR: int
28 NOT_SUPPORTED_ERR: int
29 INUSE_ATTRIBUTE_ERR: int
30 INVALID_STATE_ERR: int
31 SYNTAX_ERR: int
32 INVALID_MODIFICATION_ERR: int
33 NAMESPACE_ERR: int
34 INVALID_ACCESS_ERR: int
35 VALIDATION_ERR: int
36
37 class DOMException(Exception):
38     code: int
39     def __init__(self, *args: Any, **kw: Any) -> None: ...
40     def _get_code(self) -> int: ...
41
42 class IndexSizeErr(DOMException): ...
43 class DomstringSizeErr(DOMException): ...
44 class HierarchyRequestErr(DOMException): ...
45 class WrongDocumentErr(DOMException): ...
46 class NoDataAllowedErr(DOMException): ...
47 class NoModificationAllowedErr(DOMException): ...
48 class NotFoundErr(DOMException): ...
49 class NotSupportedErr(DOMException): ...
50 class InuseAttributeErr(DOMException): ...
51 class InvalidStateErr(DOMException): ...
52 class SyntaxErr(DOMException): ...
53 class InvalidModificationErr(DOMException): ...
54 class NamespaceErr(DOMException): ...
55 class InvalidAccessErr(DOMException): ...
56 class ValidationErr(DOMException): ...
57
58 class UserDataHandler:
59     NODE_CLONED: int
60     NODE_IMPORTED: int
61     NODE_DELETED: int
62     NODE_RENAMED: int
63
64 XML_NAMESPACE: str
65 XMLNS_NAMESPACE: str
66 XHTML_NAMESPACE: str
67 EMPTY_NAMESPACE: None
68 EMPTY_PREFIX: None