(self, ctx: str, args: dict[str]={})
| 9 | |
| 10 | class HtmlParser(): |
| 11 | def __init__(self, ctx: str, args: dict[str]={}) -> None: |
| 12 | stt = time.time() |
| 13 | self.dom_tree = self.ctx2tree(ctx) |
| 14 | # tool related |
| 15 | self.bids2label = {} |
| 16 | self.bids2xpath = {} |
| 17 | self.used_labels = {} |
| 18 | |
| 19 | # parse args |
| 20 | self.parse_args(args) |
| 21 | self.init_time = time.time() - stt |
| 22 | |
| 23 | def parse_args(self, args: dict[str]={}) -> None: |
| 24 | def attr_check(attr, type_model='str'): |
nothing calls this directly
no test coverage detected