From aa56af7dce9fc14d3ca81e7215dd3df031f39b70 Mon Sep 17 00:00:00 2001 From: Motoki Naruse Date: Wed, 19 Jun 2019 22:34:37 +0900 Subject: [PATCH] HTMLParser.get_starttag_text() can return None (#3072) --- stdlib/3/html/parser.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/html/parser.pyi b/stdlib/3/html/parser.pyi index 4b10331be..d4cfb5102 100644 --- a/stdlib/3/html/parser.pyi +++ b/stdlib/3/html/parser.pyi @@ -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: ...