mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 14:46:55 +08:00
Fix type for py2 traceback.format_exc and add to python 3.
This commit is contained in:
committed by
Guido van Rossum
parent
2011e178a6
commit
55830ec190
@@ -4,7 +4,7 @@ from types import TracebackType, FrameType
|
||||
def print_tb(traceback: TracebackType, limit: int = ..., file: IO[str] = ...) -> None: ...
|
||||
def print_exception(type: type, value: Exception, limit: int = ..., file: IO[str] = ...) -> None: ...
|
||||
def print_exc(limit: int = ..., file: IO[str] = ...) -> None: ...
|
||||
def format_exc(limit: int = ...) -> None: ...
|
||||
def format_exc(limit: int = ...) -> str: ...
|
||||
def print_last(limit: int = ..., file: IO[str] = ...) -> None: ...
|
||||
def print_stack(f: FrameType, limit: int = ..., file: IO[AnyStr] = ...) -> None: ...
|
||||
def extract_tb(f: TracebackType, limit: int = ...) -> List[Tuple[str, int, str, str]]: ...
|
||||
|
||||
Reference in New Issue
Block a user