mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
18 lines
878 B
Python
18 lines
878 B
Python
from typing import IO, Any
|
|
|
|
def pformat(object: object, indent: int = ..., width: int = ..., depth: int | None = ...) -> str: ...
|
|
def pprint(
|
|
object: object, stream: IO[str] | None = ..., indent: int = ..., width: int = ..., depth: int | None = ...
|
|
) -> None: ...
|
|
def isreadable(object: object) -> bool: ...
|
|
def isrecursive(object: object) -> bool: ...
|
|
def saferepr(object: object) -> str: ...
|
|
|
|
class PrettyPrinter:
|
|
def __init__(self, indent: int = ..., width: int = ..., depth: int | None = ..., stream: IO[str] | None = ...) -> None: ...
|
|
def pformat(self, object: object) -> str: ...
|
|
def pprint(self, object: object) -> None: ...
|
|
def isreadable(self, object: object) -> bool: ...
|
|
def isrecursive(self, object: object) -> bool: ...
|
|
def format(self, object: object, context: dict[int, Any], maxlevels: int, level: int) -> tuple[str, bool, bool]: ...
|