mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Make BaseException's init accept object instead of Any (#1518)
This commit is contained in:
committed by
Guido van Rossum
parent
98d768b2c6
commit
aa68403230
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user