Stub for inspect.stack() and related classes

This commit is contained in:
Ben Longbons
2015-10-10 19:25:30 -07:00
committed by Matthias Kramm
parent 8ee4065289
commit 793f3399a7
2 changed files with 53 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
# Stubs for inspect
from typing import Any, Tuple, List, Callable
from types import FrameType
_object = object
@@ -29,3 +30,5 @@ class ArgSpec(tuple):
defaults = ... # type: tuple
def getargspec(func: object) -> ArgSpec: ...
def stack() -> List[Tuple[FrameType, str, int, str, List[str], int]]: ...