Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions stdlib/pydoc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,24 @@ def resolve(thing: str | object, forceload: bool = ...) -> tuple[object, str] |
def render_doc(
thing: str | object, title: str = "Python Library Documentation: %s", forceload: bool = ..., renderer: Doc | None = None
) -> str: ...
def doc(
thing: str | object,
title: str = "Python Library Documentation: %s",
forceload: bool = ...,
output: SupportsWrite[str] | None = None,
) -> None: ...

if sys.version_info >= (3, 12):
def doc(
thing: str | object,
title: str = "Python Library Documentation: %s",
forceload: bool = ...,
output: SupportsWrite[str] | None = None,
is_cli: bool = False,
) -> None: ...

else:
def doc(
thing: str | object,
title: str = "Python Library Documentation: %s",
forceload: bool = ...,
output: SupportsWrite[str] | None = None,
) -> None: ...

def writedoc(thing: str | object, forceload: bool = ...) -> None: ...
def writedocs(dir: str, pkgpath: str = "", done: Any | None = None) -> None: ...

Expand All @@ -216,7 +228,11 @@ class Helper:
def __call__(self, request: str | Helper | object = ...) -> None: ...
def interact(self) -> None: ...
def getline(self, prompt: str) -> str: ...
def help(self, request: Any) -> None: ...
if sys.version_info >= (3, 12):
def help(self, request: Any, is_cli: bool = False) -> None: ...
else:
def help(self, request: Any) -> None: ...

def intro(self) -> None: ...
def list(self, items: _list[str], columns: int = 4, width: int = 80) -> None: ...
def listkeywords(self) -> None: ...
Expand Down