mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-09 06:46:18 +08:00
Bump HTMLParser.parse_comment to 3.14 (#14386)
This commit is contained in:
@@ -195,6 +195,10 @@ _frozen_importlib_external.FileLoader.get_filename
|
||||
_frozen_importlib_external.FileLoader.get_resource_reader
|
||||
_frozen_importlib_external.FileLoader.load_module
|
||||
|
||||
# Mismatch of default values of `report` parameter:
|
||||
_markupbase.ParserBase.parse_comment
|
||||
_markupbase.ParserBase.parse_marked_section
|
||||
|
||||
_pydecimal.* # See comments in file
|
||||
_typeshed.* # Utility types for typeshed, doesn't exist at runtime
|
||||
argparse.ArgumentParser.__init__ # stubtest doesn't recognise the runtime default (a class) as being compatible with a callback protocol (the stub annotation)
|
||||
@@ -307,6 +311,7 @@ functools._lru_cache_wrapper.cache_parameters # Cannot be detected statically
|
||||
functools.cached_property.__set__ # doesn't exist, but cached_property is settable by another mechanism
|
||||
|
||||
hmac.new # Raises TypeError if optional argument digestmod is not provided
|
||||
html.parser.HTMLParser.parse_bogus_comment # default values mismatch
|
||||
http.HTTPStatus.description # set in __new__; work-around for enum wierdness
|
||||
http.HTTPStatus.phrase # set in __new__; work-around for enum wierdness
|
||||
imaplib.IMAP4_SSL.ssl # Depends on the existence and flags of SSL
|
||||
|
||||
@@ -11,7 +11,6 @@ concurrent.futures.interpreter.InterpreterPoolExecutor.prepare_context
|
||||
concurrent.futures.interpreter.WorkerContext.__init__
|
||||
concurrent.futures.interpreter.WorkerContext.prepare
|
||||
concurrent.futures.interpreter.do_call
|
||||
html.parser.HTMLParser.parse_comment
|
||||
multiprocessing.managers.BaseListProxy.clear
|
||||
multiprocessing.managers.BaseListProxy.copy
|
||||
multiprocessing.managers.DictProxy.__ior__
|
||||
|
||||
@@ -5,9 +5,9 @@ class ParserBase:
|
||||
def reset(self) -> None: ...
|
||||
def getpos(self) -> tuple[int, int]: ...
|
||||
def unknown_decl(self, data: str) -> None: ...
|
||||
def parse_comment(self, i: int, report: int = 1) -> int: ... # undocumented
|
||||
def parse_comment(self, i: int, report: bool = True) -> int: ... # undocumented
|
||||
def parse_declaration(self, i: int) -> int: ... # undocumented
|
||||
def parse_marked_section(self, i: int, report: int = 1) -> int: ... # undocumented
|
||||
def parse_marked_section(self, i: int, report: bool = True) -> int: ... # undocumented
|
||||
def updatepos(self, i: int, j: int) -> int: ... # undocumented
|
||||
if sys.version_info < (3, 10):
|
||||
# Removed from ParserBase: https://bugs.python.org/issue31844
|
||||
|
||||
@@ -21,7 +21,7 @@ class HTMLParser(ParserBase):
|
||||
def check_for_whole_start_tag(self, i: int) -> int: ... # undocumented
|
||||
def clear_cdata_mode(self) -> None: ... # undocumented
|
||||
def goahead(self, end: bool) -> None: ... # undocumented
|
||||
def parse_bogus_comment(self, i: int, report: bool = ...) -> int: ... # undocumented
|
||||
def parse_bogus_comment(self, i: int, report: bool = True) -> int: ... # undocumented
|
||||
def parse_endtag(self, i: int) -> int: ... # undocumented
|
||||
def parse_html_declaration(self, i: int) -> int: ... # undocumented
|
||||
def parse_pi(self, i: int) -> int: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user