Change the type of BaseException.message to Any (#1887)

This commit is contained in:
Guido van Rossum
2018-02-16 13:42:28 -08:00
committed by Jelle Zijlstra
parent 100a071729
commit 37ec012113

View File

@@ -903,7 +903,7 @@ class memoryview(Sized, Container[bytes]):
class BaseException(object):
args = ... # type: Tuple[Any, ...]
message = ... # type: str
message = ... # type: Any
def __init__(self, *args: object, **kwargs: object) -> None: ...
def __getitem__(self, i: int) -> Any: ...
def __getslice__(self, start: int, stop: int) -> Tuple[Any, ...]: ...