mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
committed by
Sebastian Rittau
parent
d7e9af4492
commit
b5493e8639
@@ -43,6 +43,7 @@ class FunctionType:
|
||||
__dict__ = func_dict
|
||||
__globals__ = func_globals
|
||||
__name__ = func_name
|
||||
def __init__(self, code: CodeType, globals: Dict[str, Any], name: Optional[str] = ..., argdefs: Optional[Tuple[object, ...]] = ..., closure: Optional[Tuple[_Cell, ...]] = ...) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def __get__(self, obj: Optional[object], type: Optional[type]) -> UnboundMethodType: ...
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ class FunctionType:
|
||||
__qualname__: str
|
||||
__annotations__: Dict[str, Any]
|
||||
__kwdefaults__: Dict[str, Any]
|
||||
def __init__(self, code: CodeType, globals: Dict[str, Any], name: Optional[str] = ..., argdefs: Optional[Tuple[object, ...]] = ..., closure: Optional[Tuple[_Cell, ...]] = ...) -> None: ...
|
||||
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