Make BaseException's init accept object instead of Any (#1518)

This commit is contained in:
Svyatoslav Ilinskiy
2017-08-03 12:57:59 -07:00
committed by Guido van Rossum
parent 98d768b2c6
commit aa68403230

View File

@@ -900,7 +900,7 @@ class BaseException:
__cause__ = ... # type: BaseException
__context__ = ... # type: BaseException
__traceback__ = ... # type: TracebackType
def __init__(self, *args: Any) -> None: ...
def __init__(self, *args: object) -> None: ...
def with_traceback(self, tb: Any) -> BaseException: ...
class GeneratorExit(BaseException): ...