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