Add traceback.print_stack to mypy python 3 (#400)

This commit is contained in:
jchien14
2016-07-25 16:40:01 -07:00
committed by Guido van Rossum
parent a93b491fed
commit b8c08f25f7

View File

@@ -1,7 +1,7 @@
# Stubs for traceback
from typing import List
from types import TracebackType
from typing import IO, List
from types import TracebackType, FrameType
import typing
# TODO signatures
@@ -14,5 +14,6 @@ def extract_stack(f=..., limit=...): ...
def extract_tb(traceback, limit=...): ...
def format_list(list): ...
def format_stack(f=..., limit=...) -> List[str]: ...
def print_stack(f: FrameType = ..., limit: int = ..., file: IO[str] = ...) -> None: ...
# TODO add more