mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 13:51:30 +08:00
fix return type for traceback.format_exception (#326)
format_exception and format_exception_only both return lists of strings, not strings.
This commit is contained in:
committed by
Guido van Rossum
parent
ab08dbbf09
commit
998d787302
@@ -5,8 +5,8 @@ from types import TracebackType
|
||||
import typing
|
||||
|
||||
# TODO signatures
|
||||
def format_exception_only(etype, value): ...
|
||||
def format_exception(type: type, value: BaseException, tb: TracebackType, limit: int, chain: bool) -> str: ...
|
||||
def format_exception_only(etype, value) -> List[str]: ...
|
||||
def format_exception(type: type, value: BaseException, tb: TracebackType, limit: int, chain: bool) -> List[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