mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Args is a predefined attribute on BaseException, and always Tuple[Any, ...] (#666)
This commit is contained in:
committed by
Guido van Rossum
parent
cecb64b59f
commit
341c4edc37
@@ -1,11 +1,11 @@
|
||||
from typing import Any, List, Optional
|
||||
from typing import Any, Tuple, Optional
|
||||
|
||||
class StandardError(Exception): ...
|
||||
class ArithmeticError(StandardError): ...
|
||||
class AssertionError(StandardError): ...
|
||||
class AttributeError(StandardError): ...
|
||||
class BaseException(object):
|
||||
args = ... # type: List[Any]
|
||||
args = ... # type: Tuple[Any, ...]
|
||||
message = ... # type: str
|
||||
def __getslice__(self, start, end) -> Any: ...
|
||||
def __getitem__(self, start, end) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user