diff --git a/stdlib/@tests/stubtest_allowlists/common.txt b/stdlib/@tests/stubtest_allowlists/common.txt index 130c6d2b8..e222a340c 100644 --- a/stdlib/@tests/stubtest_allowlists/common.txt +++ b/stdlib/@tests/stubtest_allowlists/common.txt @@ -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 diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index 7f18bd946..959353790 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -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__ diff --git a/stdlib/_markupbase.pyi b/stdlib/_markupbase.pyi index 62bad25e5..597bd09b7 100644 --- a/stdlib/_markupbase.pyi +++ b/stdlib/_markupbase.pyi @@ -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 diff --git a/stdlib/html/parser.pyi b/stdlib/html/parser.pyi index d322ade96..5d38c9c0d 100644 --- a/stdlib/html/parser.pyi +++ b/stdlib/html/parser.pyi @@ -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