mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 22:01:14 +08:00
Make BaseException inherit from object in PY2 (#1123)
>>> object in BaseException.mro() True
This commit is contained in:
committed by
Guido van Rossum
parent
90415f5f9d
commit
4395f1ef16
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user