diff --git a/stdlib/2/ConfigParser.pyi b/stdlib/2/ConfigParser.pyi index 5fdf38020..ae6915e8d 100644 --- a/stdlib/2/ConfigParser.pyi +++ b/stdlib/2/ConfigParser.pyi @@ -14,30 +14,25 @@ class Error(Exception): class NoSectionError(Error): section = ... # type: str - args = ... # type: Tuple[str] def __init__(self, section: str) -> None: ... class DuplicateSectionError(Error): section = ... # type: str - args = ... # type: Tuple[str] def __init__(self, section: str) -> None: ... class NoOptionError(Error): section = ... # type: str option = ... # type: str - args = ... # type: Tuple[str,str] def __init__(self, option: str, section: str) -> None: ... class InterpolationError(Error): section = ... # type: str option = ... # type: str msg = ... # type: str - args = ... # type: Tuple[str,str,str] def __init__(self, option: str, section: str, msg: str) -> None: ... class InterpolationMissingOptionError(InterpolationError): reference = ... # type: str - args = ... # type: Tuple[str,str,str,str] def __init__(self, option: str, section: str, rawval: str, reference: str) -> None: ... class InterpolationSyntaxError(InterpolationError): ... @@ -48,14 +43,12 @@ class InterpolationDepthError(InterpolationError): class ParsingError(Error): filename = ... # type: str errors = ... # type: list[Tuple[Any,Any]] - args = ... # type: Tuple[str] def __init__(self, filename: str) -> None: ... def append(self, lineno: Any, line: Any) -> None: ... class MissingSectionHeaderError(ParsingError): lineno = ... # type: Any line = ... # type: Any - args = ... # type: Tuple[str,Any,Any] def __init__(self, filename: str, lineno: Any, line: Any) -> None: ... diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index 7e32e1163..bedc1c480 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -833,7 +833,7 @@ class memoryview(Sized, Container[bytes]): def tolist(self) -> List[int]: ... class BaseException: - args = ... # type: Any + args = ... # type: Tuple[Any, ...] message = ... # type: str def __init__(self, *args: Any) -> None: ... def with_traceback(self, tb: Any) -> BaseException: ... diff --git a/stdlib/2/exceptions.pyi b/stdlib/2/exceptions.pyi index 1f29e909a..9b00e34a6 100644 --- a/stdlib/2/exceptions.pyi +++ b/stdlib/2/exceptions.pyi @@ -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: ... diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 6ca58e106..8c7570689 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -795,7 +795,7 @@ Ellipsis = ... # type: ellipsis # Exceptions class BaseException: - args = ... # type: Any + args = ... # type: Tuple[Any, ...] __cause__ = ... # type: BaseException __context__ = ... # type: BaseException __traceback__ = ... # type: TracebackType