mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Fix HTMLParser.HTMLParser, HTMLParseError. (#565)
Signed-off-by: Rebecca Chen <rechen@rechen0.mtv.corp.google.com>
This commit is contained in:
@@ -2,7 +2,7 @@ from typing import List, Tuple, AnyStr
|
||||
from markupbase import ParserBase
|
||||
|
||||
class HTMLParser(ParserBase):
|
||||
def __init__(self, *args, convert_charrefs: bool) -> None: ...
|
||||
def __init__(self) -> None: ...
|
||||
def feed(self, feed: AnyStr) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def reset(self) -> None: ...
|
||||
@@ -25,4 +25,7 @@ class HTMLParser(ParserBase):
|
||||
|
||||
def unescape(self, s: AnyStr) -> AnyStr: ...
|
||||
|
||||
class HTMLParseError(Exception): ...
|
||||
class HTMLParseError(Exception):
|
||||
msg = ... # type: str
|
||||
lineno = ... # type: int
|
||||
offset = ... # type: int
|
||||
Reference in New Issue
Block a user