Skip to content

pprint stream type #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 3, 2016
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions stdlib/2.7/pprint.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from typing import IO, Any

def pprint(object: Any, stream: IO[Any] = ..., indent: int = ..., width: int = ...,
def pprint(object: Any, stream: IO[str] = ..., indent: int = ..., width: int = ...,
depth: int = ...) -> None: ...
def pformat(object, indent=..., width=..., depth=...): ...
def saferepr(object): ...
Expand All @@ -13,7 +13,7 @@ def isrecursive(object): ...

class PrettyPrinter:
def __init__(self, indent: int = ..., width: int = ..., depth: int = ...,
stream: IO[Any] = ...) -> None: ...
stream: IO[str] = ...) -> None: ...
def pprint(self, object): ...
def pformat(self, object): ...
def isrecursive(self, object): ...
Expand Down
6 changes: 3 additions & 3 deletions stdlib/3/pprint.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

# Based on http://docs.python.org/3.2/library/pprint.html

from typing import Any, Dict, Tuple, TextIO
from typing import Any, Dict, Tuple, IO

def pformat(o: object, indent: int = ..., width: int = ...,
depth: int = ...) -> str: ...
def pprint(o: object, stream: TextIO = ..., indent: int = ..., width: int = ...,
def pprint(o: object, stream: IO[str] = ..., indent: int = ..., width: int = ...,
depth: int = ...) -> None: ...
def isreadable(o: object) -> bool: ...
def isrecursive(o: object) -> bool: ...
def saferepr(o: object) -> str: ...

class PrettyPrinter:
def __init__(self, indent: int = ..., width: int = ..., depth: int = ...,
stream: TextIO = ...) -> None: ...
stream: IO[str] = ...) -> None: ...
def pformat(self, o: object) -> str: ...
def pprint(self, o: object) -> None: ...
def isreadable(self, o: object) -> bool: ...
Expand Down