Add __init__ to types.MethodType (#1499)

This commit is contained in:
Semyon Proshev authored and Jelle Zijlstra committed 2017-07-26 08:38:27 -07:00
1 parent 15c8474e35
commit 72fbc459a7
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -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]