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

This commit is contained in:
TrueBrain
2016-11-06 00:33:58 +01:00
committed by Guido van Rossum
parent cecb64b59f
commit 341c4edc37
4 changed files with 4 additions and 11 deletions

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: ...