Merge pull request #111 from jstasiak/python27-inspect-fix

Fix Python 2.7 inspect stub (currentframe + frame type)
This commit is contained in:
Guido van Rossum
2016-03-09 16:14:40 -08:00

View File

@@ -69,10 +69,8 @@ def getmro(cls: type) -> Tuple[type, ...]: ...
def getinnerframes(traceback: TracebackType, context: int = ...) -> List[FrameType]:
...
class _Frame:
...
_FrameRecord = Tuple[_Frame, str, int, str, List[str], int]
_FrameRecord = Tuple[FrameType, str, int, str, List[str], int]
def currentframe() -> _FrameRecord: ...
def currentframe() -> FrameType: ...
def stack(context: int = ...) -> List[_FrameRecord]: ...
def trace(context: int = ...) -> List[_FrameRecord]: ...