mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +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]]: ...
|
||||
|
||||
@@ -6,6 +6,7 @@ import typing
|
||||
def format_exception_only(etype, value): ...
|
||||
def format_tb(traceback): ...
|
||||
def print_exc(limit=..., file=..., chain=...): ...
|
||||
def format_exc(limit: int, chain: bool = ...) -> str: ...
|
||||
def extract_stack(f=..., limit=...): ...
|
||||
def extract_tb(traceback, limit=...): ...
|
||||
def format_list(list): ...
|
||||
|
||||
Reference in New Issue
Block a user