mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Stub for inspect.stack() and related classes
This commit is contained in:
committed by
Matthias Kramm
parent
8ee4065289
commit
793f3399a7
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user