mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-11 01:16:46 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
from typing import IO, Any, Dict, Optional, Tuple
|
||||
from typing import IO, Any, Dict, Tuple
|
||||
|
||||
def pformat(object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ...) -> str: ...
|
||||
def pformat(object: object, indent: int = ..., width: int = ..., depth: int | None = ...) -> str: ...
|
||||
def pprint(
|
||||
object: object, stream: Optional[IO[str]] = ..., indent: int = ..., width: int = ..., depth: Optional[int] = ...
|
||||
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: Optional[int] = ..., stream: Optional[IO[str]] = ...
|
||||
) -> None: ...
|
||||
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: ...
|
||||
|
||||
Reference in New Issue
Block a user