Assorted fixes to stubs

This commit is contained in:
Ben Darnell
2016-01-16 16:52:01 -05:00
parent 43fcb6c185
commit 3a674645a5
5 changed files with 32 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# Stubs for inspect
from typing import Any, Tuple, List, Callable
from typing import Any, Tuple, List, Dict, Callable
from types import FrameType
_object = object
@@ -31,4 +31,16 @@ class ArgSpec(tuple):
def getargspec(func: object) -> ArgSpec: ...
# namedtuple('FullArgSpec', 'args varargs varkw defaults kwonlyargs kwonlydefaults annotations')
class FullArgSpec(tuple):
args = ... # type: List[str]
varargs = ... # type: str
varkw = ... # type: str
defaults = ... # type: tuple
kwonlyargs = ... # type: List[str]
kwonlydefaults = ... # type: Dict[str, Any]
annotations = ... # type: Dict[str, Any]
def getfullargspec(func: object) -> FullArgSpec: ...
def stack() -> List[Tuple[FrameType, str, int, str, List[str], int]]: ...