HTMLParser: Add missing stubs for attributes and methods (#6658)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Joseph YoungandAlex Waygood authored and GitHub committed 2021-12-22 19:32:35 +02:00
1 parent bd0cbf41f4
commit 40f2cb6e39
4 files changed
+18 -7

No files matched your search

+6 -1
View File
@@ -1,5 +1,5 @@
from _markupbase import ParserBase
from typing import Tuple
from typing import Pattern, Tuple
class HTMLParser(ParserBase):
def __init__(self, *, convert_charrefs: bool = ...) -> None: ...
@@ -28,3 +28,8 @@ class HTMLParser(ParserBase):
def parse_pi(self, i: int) -> int: ... # undocumented
def parse_starttag(self, i: int) -> int: ... # undocumented
def set_cdata_mode(self, elem: str) -> None: ... # undocumented
rawdata: str # undocumented
cdata_elem: str | None # undocumented
convert_charrefs: bool # undocumented
interesting: Pattern[str] # undocumented
lasttag: str # undocumented