mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
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:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user