Make BaseException inherit from object in PY2 (#1123)

>>> object in BaseException.mro()
True
This commit is contained in:
Andrey Vlasovskikh
2017-03-31 18:21:39 +02:00
committed by Guido van Rossum
parent 90415f5f9d
commit 4395f1ef16

View File

@@ -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: ...