diff options
| author | jvoisin | 2019-07-13 15:02:01 +0200 |
|---|---|---|
| committer | jvoisin | 2019-07-13 15:03:40 +0200 |
| commit | 47f9cb33bf3f86382dda29aedebe5bca271af306 (patch) | |
| tree | 0d573e00df483a44325708068a9c80e49fc3ca3f /libmat2 | |
| parent | b784a9fc7f2465f7506bba77f37f34cd5764da23 (diff) | |
Please mypy
Diffstat (limited to 'libmat2')
| -rw-r--r-- | libmat2/web.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmat2/web.py b/libmat2/web.py index b05ca3b..70094f8 100644 --- a/libmat2/web.py +++ b/libmat2/web.py | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | from html import parser, escape | 1 | from html import parser, escape |
| 2 | from typing import Dict, Any, List, Tuple, Set | 2 | from typing import Dict, Any, List, Tuple, Set, Optional |
| 3 | import re | 3 | import re |
| 4 | import string | 4 | import string |
| 5 | 5 | ||
| @@ -96,7 +96,7 @@ class _HTMLParser(parser.HTMLParser): | |||
| 96 | self.tag_required_blocklist = required_blocklisted_tags | 96 | self.tag_required_blocklist = required_blocklisted_tags |
| 97 | self.tag_blocklist = blocklisted_tags | 97 | self.tag_blocklist = blocklisted_tags |
| 98 | 98 | ||
| 99 | def handle_starttag(self, tag: str, attrs: List[Tuple[str, str]]): | 99 | def handle_starttag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]): |
| 100 | original_tag = self.get_starttag_text() | 100 | original_tag = self.get_starttag_text() |
| 101 | self.__validation_queue.append(original_tag) | 101 | self.__validation_queue.append(original_tag) |
| 102 | 102 | ||
