mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
A couple new definitions, some more unicode for 2.7 (#185)
* Action.__init__(); ArgumentParser.__init__() & print_help()
* pprint() & pformat()
* added unicode support to url{parse,split,join,defrag}
* add unicode support to requests.api
This commit is contained in:
committed by
Guido van Rossum
parent
eab591bb08
commit
0be5a11496
@@ -6,15 +6,18 @@ from typing import IO, Any
|
||||
|
||||
def pprint(object: Any, stream: IO[str] = ..., indent: int = ..., width: int = ...,
|
||||
depth: int = ...) -> None: ...
|
||||
def pformat(object, indent=..., width=..., depth=...): ...
|
||||
def pformat(object: Any, indent: int =..., width: int =..., depth: int =...) -> str: ...
|
||||
def saferepr(object): ...
|
||||
def isreadable(object): ...
|
||||
def isrecursive(object): ...
|
||||
|
||||
class PrettyPrinter:
|
||||
def __init__(self, indent: int = ..., width: int = ..., depth: int = ...,
|
||||
stream: IO[str] = ...) -> None: ...
|
||||
def pprint(self, object): ...
|
||||
def __init__(self,
|
||||
indent: int = ...,
|
||||
width: int = ...,
|
||||
depth: int = ...,
|
||||
stream: IO[Any] = ...) -> None: ...
|
||||
def pprint(self, object: Any) -> str: ...
|
||||
def pformat(self, object): ...
|
||||
def isrecursive(self, object): ...
|
||||
def isreadable(self, object): ...
|
||||
|
||||
Reference in New Issue
Block a user