👁 查看:elements.py
路径:/usr/lib/python3.9/site-packages/html2text/elements.py
大小:423 B · 修改:2019-10-12 16:20:41 · 权限:0644 · 只读
from typing import Dict, Optional


class AnchorElement:
    __slots__ = ["attrs", "count", "outcount"]

    def __init__(self, attrs: Dict[str, Optional[str]], count: int, outcount: int):
        self.attrs = attrs
        self.count = count
        self.outcount = outcount


class ListElement:
    __slots__ = ["name", "num"]

    def __init__(self, name: str, num: int):
        self.name = name
        self.num = num