mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add __init__ to types.MethodType (#1499)
This commit is contained in:
committed by
Jelle Zijlstra
parent
15c8474e35
commit
72fbc459a7
@@ -81,10 +81,11 @@ class ClassType: ...
|
||||
class UnboundMethodType:
|
||||
im_class = ... # type: type
|
||||
im_func = ... # type: FunctionType
|
||||
im_self = ... # type: Optional[object]
|
||||
im_self = ... # type: object
|
||||
__name__ = ... # type: str
|
||||
__func__ = im_func
|
||||
__self__ = im_self
|
||||
def __init__(self, func: Callable, obj: object) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
|
||||
class InstanceType:
|
||||
|
||||
@@ -140,6 +140,7 @@ class MethodType:
|
||||
__func__ = ... # type: _StaticFunctionType
|
||||
__self__ = ... # type: object
|
||||
__name__ = ... # type: str
|
||||
def __init__(self, func: Callable, obj: object) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
class BuiltinFunctionType:
|
||||
__self__ = ... # type: Union[object, ModuleType]
|
||||
|
||||
Reference in New Issue
Block a user