Skip to content
Snippets Groups Projects
Commit 47f9cb33 authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Please mypy

parent b784a9fc
No related branches found
No related tags found
No related merge requests found
from html import parser, escape from html import parser, escape
from typing import Dict, Any, List, Tuple, Set from typing import Dict, Any, List, Tuple, Set, Optional
import re import re
import string import string
...@@ -96,7 +96,7 @@ class _HTMLParser(parser.HTMLParser): ...@@ -96,7 +96,7 @@ class _HTMLParser(parser.HTMLParser):
self.tag_required_blocklist = required_blocklisted_tags self.tag_required_blocklist = required_blocklisted_tags
self.tag_blocklist = blocklisted_tags self.tag_blocklist = blocklisted_tags
def handle_starttag(self, tag: str, attrs: List[Tuple[str, str]]): def handle_starttag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]):
original_tag = self.get_starttag_text() original_tag = self.get_starttag_text()
self.__validation_queue.append(original_tag) self.__validation_queue.append(original_tag)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment