Add is_cli param to pydoc.pyi (#10331)

This commit is contained in:
Kirill Podoprigora
2023-06-21 16:58:03 +03:00
committed by GitHub
parent 6652add920
commit f3a0be32fe

View File

@@ -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: ...
@@ -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: ...