Fix HTMLParser.handle_startendtag() attrs annotation (#3366)

The value can be None here as well as in handle_starttag().
This commit is contained in:
cptpcrd
2019-10-15 08:42:25 -04:00
committed by Sebastian Rittau
parent b969ead0ce
commit 89f0f63502

View File

@@ -13,7 +13,7 @@ class HTMLParser(ParserBase):
attrs: List[Tuple[str, Optional[str]]]) -> None: ...
def handle_endtag(self, tag: str) -> None: ...
def handle_startendtag(self, tag: str,
attrs: List[Tuple[str, str]]) -> None: ...
attrs: List[Tuple[str, Optional[str]]]) -> None: ...
def handle_data(self, data: str) -> None: ...
def handle_entityref(self, name: str) -> None: ...
def handle_charref(self, name: str) -> None: ...