mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add stubs for traceback.format_exception.
This commit is contained in:
committed by
Guido van Rossum
parent
55830ec190
commit
c17d0120a9
@@ -4,6 +4,7 @@ import typing
|
||||
|
||||
# TODO signatures
|
||||
def format_exception_only(etype, value): ...
|
||||
def format_exception(type: type, value: List[str], tb: TracebackType, limit: int, chain: bool) -> str: ...
|
||||
def format_tb(traceback): ...
|
||||
def print_exc(limit=..., file=..., chain=...): ...
|
||||
def format_exc(limit: int, chain: bool = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user