golden hour
/usr/lib/python3.9/site-packages/html2text
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
33.09 KB
Del
OK
__main__.py
30 B
Del
OK
__pycache__
-
Del
OK
cli.py
9.03 KB
Del
OK
config.py
3.75 KB
Del
OK
elements.py
423 B
Del
OK
py.typed
0 B
Del
OK
typing.py
71 B
Del
OK
utils.py
7.85 KB
Del
OK
Edit: elements.py
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
Save