From 89f0f635022b274f759feda3f5d6350a1f88500a Mon Sep 17 00:00:00 2001 From: cptpcrd <31829097+cptpcrd@users.noreply.github.com> Date: Tue, 15 Oct 2019 08:42:25 -0400 Subject: [PATCH] Fix HTMLParser.handle_startendtag() attrs annotation (#3366) The value can be None here as well as in handle_starttag(). --- 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 874b85057..4c037845a 100644 --- a/stdlib/3/html/parser.pyi +++ b/stdlib/3/html/parser.pyi @@ -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: ...