Args is a predefined attribute on BaseException, and always Tuple[Any, ...] (#666)

This commit is contained in:
TrueBrain
2016-11-05 16:33:58 -07:00
committed by Guido van Rossum
parent cecb64b59f
commit 341c4edc37
4 changed files with 4 additions and 11 deletions
+2 -2
View File
@@ -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: ...