Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/turbohtml/etree.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""ElementTree views for consumers that need element text and tail semantics."""
3from __future__ import annotations
5from typing import Final
7from ._html import ElementView, _elementtree_element, _elementtree_subelement
8from ._html import _elementtree_context as document_context
9from ._html import _elementtree_document_fromstring as document_fromstring
10from ._html import _elementtree_fragment_fromstring as fragment_fromstring
11from ._html import _elementtree_from_lxml as from_lxml
12from ._html import _elementtree_fromstring as fromstring
13from ._html import _elementtree_strip_elements as strip_elements
14from ._html import _elementtree_strip_tags as strip_tags
15from ._html import _elementtree_to_lxml as to_lxml
16from ._html import _elementtree_to_lxml_html as to_lxml_html
17from ._html import _elementtree_tostring as tostring
18from ._html import _ElementXPath as XPath
20Element: Final = _elementtree_element
21SubElement: Final = _elementtree_subelement
23__all__ = [
24 "Element",
25 "ElementView",
26 "SubElement",
27 "XPath",
28 "document_context",
29 "document_fromstring",
30 "fragment_fromstring",
31 "from_lxml",
32 "fromstring",
33 "strip_elements",
34 "strip_tags",
35 "to_lxml",
36 "to_lxml_html",
37 "tostring",
38]