Fix Python 2.7 inspect stub (currentframe + frame type)

inspect.currentframe() return a frame object on its own, not as a part
of a record.

Additionally the artificial _Frame type is unnecessary as
types.FrameType exists.
This commit is contained in:
Jakub Stasiak
2016-03-10 00:54:54 +01:00
parent 307516c95b
commit 983d8cbf5e

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]: ...