1
0
mirror of synced 2024-12-27 07:09:58 +01:00

Please mypy

This commit is contained in:
jvoisin 2019-07-13 23:25:44 +02:00
parent 4999209f9c
commit dc5603eb1d

View File

@ -98,6 +98,8 @@ class _HTMLParser(parser.HTMLParser):
def handle_starttag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]):
original_tag = self.get_starttag_text()
if not original_tag: # empty tag
return
self.__validation_queue.append(original_tag)
if tag in self.tag_blocklist: