From 57c435cd7e964290005d0df0d9b5daf5bd2cbcb1 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 16 Jul 2023 13:28:56 +0300 Subject: [PATCH] Update `pydoc` for 3.12 (#10467) --- stdlib/pydoc.pyi | 2 ++ tests/stubtest_allowlists/py312.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/pydoc.pyi b/stdlib/pydoc.pyi index c993af390bbb..7791c977aa8b 100644 --- a/stdlib/pydoc.pyi +++ b/stdlib/pydoc.pyi @@ -61,6 +61,7 @@ class Doc: def getdocloc(self, object: object, basedir: str = ...) -> str | None: ... class HTMLRepr(Repr): + def __init__(self) -> None: ... def escape(self, text: str) -> str: ... def repr(self, object: object) -> str: ... def repr1(self, x: object, level: complex) -> str: ... @@ -148,6 +149,7 @@ class HTMLDoc(Doc): def filelink(self, url: str, path: str) -> str: ... class TextRepr(Repr): + def __init__(self) -> None: ... def repr1(self, x: object, level: complex) -> str: ... def repr_string(self, x: str, level: complex) -> str: ... def repr_str(self, x: str, level: complex) -> str: ... diff --git a/tests/stubtest_allowlists/py312.txt b/tests/stubtest_allowlists/py312.txt index fe706b68a593..d5a98c7d57ac 100644 --- a/tests/stubtest_allowlists/py312.txt +++ b/tests/stubtest_allowlists/py312.txt @@ -72,8 +72,6 @@ poplib.POP3_SSL.__init__ posixpath.__all__ posixpath.isjunction posixpath.splitroot -pydoc.HTMLRepr.__init__ -pydoc.TextRepr.__init__ smtplib.SMTP.starttls smtplib.SMTP_SSL.__init__ sqlite3.Connection.autocommit