mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-16 03:24:54 +08:00
Akuli and srittau: Remove Python 2 branches from Python 3 stubs (#5461)
* run script and do some manual changes (Akuli) * do the whole thing manually (srittau) * merge changes (Akuli) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
@@ -24,14 +24,11 @@ elif sys.version_info >= (3, 8):
|
||||
sort_dicts: bool = ...,
|
||||
) -> str: ...
|
||||
|
||||
elif sys.version_info >= (3, 4):
|
||||
else:
|
||||
def pformat(
|
||||
object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ..., *, compact: bool = ...
|
||||
) -> str: ...
|
||||
|
||||
else:
|
||||
def pformat(object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ...) -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def pp(
|
||||
object: object,
|
||||
@@ -82,7 +79,7 @@ elif sys.version_info >= (3, 8):
|
||||
sort_dicts: bool = ...,
|
||||
) -> None: ...
|
||||
|
||||
elif sys.version_info >= (3, 4):
|
||||
else:
|
||||
def pprint(
|
||||
object: object,
|
||||
stream: Optional[IO[str]] = ...,
|
||||
@@ -93,11 +90,6 @@ elif sys.version_info >= (3, 4):
|
||||
compact: bool = ...,
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def pprint(
|
||||
object: object, stream: Optional[IO[str]] = ..., indent: int = ..., width: int = ..., depth: Optional[int] = ...
|
||||
) -> None: ...
|
||||
|
||||
def isreadable(object: object) -> bool: ...
|
||||
def isrecursive(object: object) -> bool: ...
|
||||
def saferepr(object: object) -> str: ...
|
||||
@@ -126,7 +118,7 @@ class PrettyPrinter:
|
||||
compact: bool = ...,
|
||||
sort_dicts: bool = ...,
|
||||
) -> None: ...
|
||||
elif sys.version_info >= (3, 4):
|
||||
else:
|
||||
def __init__(
|
||||
self,
|
||||
indent: int = ...,
|
||||
@@ -136,10 +128,6 @@ class PrettyPrinter:
|
||||
*,
|
||||
compact: bool = ...,
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(
|
||||
self, indent: int = ..., width: int = ..., depth: Optional[int] = ..., stream: Optional[IO[str]] = ...
|
||||
) -> None: ...
|
||||
def pformat(self, object: object) -> str: ...
|
||||
def pprint(self, object: object) -> None: ...
|
||||
def isreadable(self, object: object) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user