mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Added missing special attributes for PY3 functions (#875)
This commit is contained in:
committed by
Guido van Rossum
parent
7c93bb07e1
commit
92534805b5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user