From 4859742087e3925aef5d4e7c7d1c91f18da07b9d Mon Sep 17 00:00:00 2001 From: Semyon Proshev Date: Mon, 8 Oct 2018 15:31:21 +0300 Subject: [PATCH] Inherit `InstanceType` from `object` (#2511) --- stdlib/2/types.pyi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stdlib/2/types.pyi b/stdlib/2/types.pyi index ac6db2645..443abc592 100644 --- a/stdlib/2/types.pyi +++ b/stdlib/2/types.pyi @@ -88,9 +88,8 @@ class UnboundMethodType: def __init__(self, func: Callable, obj: object) -> None: ... def __call__(self, *args: Any, **kwargs: Any) -> Any: ... -class InstanceType: - __doc__ = ... # type: Optional[str] - __module__ = ... # type: Any +class InstanceType(object): + pass MethodType = UnboundMethodType