From 4395f1ef16b968b0baa9a563afd5e6fd4ab1b183 Mon Sep 17 00:00:00 2001 From: Andrey Vlasovskikh Date: Fri, 31 Mar 2017 18:21:39 +0200 Subject: [PATCH] Make BaseException inherit from object in PY2 (#1123) >>> object in BaseException.mro() True --- stdlib/2/__builtin__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 9754f47cb..195d4b180 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -878,7 +878,7 @@ class memoryview(Sized, Container[bytes]): def tobytes(self) -> bytes: ... def tolist(self) -> List[int]: ... -class BaseException: +class BaseException(object): args = ... # type: Tuple[Any, ...] message = ... # type: str def __init__(self, *args: Any) -> None: ...