mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add traceback.print_stack to mypy python 3 (#400)
This commit is contained in:
committed by
Guido van Rossum
parent
a93b491fed
commit
b8c08f25f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user