mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 22:11:54 +08:00
Merge pull request #111 from jstasiak/python27-inspect-fix
Fix Python 2.7 inspect stub (currentframe + frame type)
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