You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
423 B
19 lines
423 B
4 years ago
|
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
|