HTMLParser.get_starttag_text() can return None (#3072)

This commit is contained in:
Motoki Naruse
2019-06-19 22:34:37 +09:00
committed by Sebastian Rittau
parent 38f253ed69
commit aa56af7dce

View File

@@ -12,7 +12,7 @@ class HTMLParser(ParserBase):
def close(self) -> None: ...
def reset(self) -> None: ...
def getpos(self) -> Tuple[int, int]: ...
def get_starttag_text(self) -> str: ...
def get_starttag_text(self) -> Optional[str]: ...
def handle_starttag(self, tag: str,
attrs: List[Tuple[str, Optional[str]]]) -> None: ...