Added missing special attributes for PY3 functions (#875)

This commit is contained in:
Andrey Vlasovskikh
2017-01-30 07:34:35 +03:00
committed by Guido van Rossum
parent 7c93bb07e1
commit 92534805b5

View File

@@ -27,6 +27,8 @@ class FunctionType:
__dict__ = ... # type: Dict[str, Any]
__globals__ = ... # type: Dict[str, Any]
__name__ = ... # type: str
__annotations__ = ... # type: Dict[str, Any]
__kwdefaults__ = ... # type: Dict[str, Any]
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
def __get__(self, obj: Optional[object], type: Optional[type]) -> 'MethodType': ...
LambdaType = FunctionType