Commit 693408f1 authored by jvoisin's avatar jvoisin

Please mypy

Mypy doesn't like some annotation in web.py,
this commits aims at pleasing it.
parent 0902e9e3
Pipeline #32418 passed with stages
in 2 minutes and 9 seconds
......@@ -159,7 +159,8 @@ class _HTMLParser(parser.HTMLParser):
if data.strip():
self.__textrepr += escape(data)
def handle_startendtag(self, tag: str, attrs: List[Tuple[str, str]]):
def handle_startendtag(self, tag: str,
attrs: List[Tuple[str, Optional[str]]]):
if tag in self.tag_required_blocklist | self.tag_blocklist:
meta = {k:v for k, v in attrs}
name = meta.get('name', 'harmful metadata')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment