diff --git a/stdlib/3/_markupbase.pyi b/stdlib/3/_markupbase.pyi index 129b49b90..58d107052 100644 --- a/stdlib/3/_markupbase.pyi +++ b/stdlib/3/_markupbase.pyi @@ -1,6 +1,6 @@ from typing import Tuple -class ParserBase(object): +class ParserBase: def __init__(self) -> None: ... def error(self, message: str) -> None: ... def reset(self) -> None: ... diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 835119a81..095c6e736 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -80,7 +80,7 @@ class type: def __instancecheck__(self, instance: Any) -> bool: ... def __subclasscheck__(self, subclass: type) -> bool: ... -class super(object): +class super: @overload def __init__(self, t: Any, obj: Any) -> None: ... @overload diff --git a/stdlib/3/calendar.pyi b/stdlib/3/calendar.pyi index a9ce68684..957f8ce71 100644 --- a/stdlib/3/calendar.pyi +++ b/stdlib/3/calendar.pyi @@ -19,7 +19,7 @@ def leapdays(y1: int, y2: int) -> int: ... def weekday(year: int, month: int, day: int) -> int: ... def monthrange(year: int, month: int) -> Tuple[int, int]: ... -class Calendar(object): +class Calendar: def __init__(self, firstweekday: int = 0) -> None: ... def getfirstweekday(self) -> int: ... def setfirstweekday(self, firstweekday: int) -> None: ... diff --git a/stdlib/3/difflib.pyi b/stdlib/3/difflib.pyi index eaf068e35..f2fb7a879 100644 --- a/stdlib/3/difflib.pyi +++ b/stdlib/3/difflib.pyi @@ -47,7 +47,7 @@ def ndiff(a: Sequence[str], b: Sequence[str], charjunk: Callable[[str], bool] = ... ) -> Iterator[str]: ... -class HtmlDiff(object): +class HtmlDiff: def __init__(self, tabsize: int = ..., wrapcolumn: int = ..., linejunk: Callable[[str], bool] = ..., charjunk: Callable[[str], bool] = ... diff --git a/stdlib/3/json.pyi b/stdlib/3/json.pyi index 7b2e2e8d3..5dad703f2 100644 --- a/stdlib/3/json.pyi +++ b/stdlib/3/json.pyi @@ -50,7 +50,7 @@ def load(fp: IO[str], object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ..., **kwds: Any) -> Any: ... -class JSONEncoder(object): +class JSONEncoder: item_separator = ... # type: str key_separator = ... # type: str @@ -69,7 +69,7 @@ class JSONEncoder(object): def encode(self, o: Any) -> str: ... def iterencode(self, o: Any, _one_shot: bool=False) -> Iterator[str]: ... -class JSONDecoder(object): +class JSONDecoder: object_hook = None # type: Callable[[Dict[str, Any]], Any] parse_float = ... # Callable[[str], Any] diff --git a/third_party/3.6/click/utils.pyi b/third_party/3.6/click/utils.pyi index d025643e2..3658295c0 100644 --- a/third_party/3.6/click/utils.pyi +++ b/third_party/3.6/click/utils.pyi @@ -57,7 +57,7 @@ class LazyFile: ... -class KeepOpenFile(object): +class KeepOpenFile: _file: IO def __init__(self, file: IO) -> None: diff --git a/third_party/3/dateutil/parser.pyi b/third_party/3/dateutil/parser.pyi index e69f2e2d5..fcd977557 100644 --- a/third_party/3/dateutil/parser.pyi +++ b/third_party/3/dateutil/parser.pyi @@ -4,7 +4,7 @@ from datetime import datetime __all__ = ... # type: List[str] -class parserinfo(object): +class parserinfo: JUMP = ... # type: List[str] WEEKDAYS = ... # type: List[Tuple[str, str]] MONTHS = ... # type: List[Tuple[str, str]] @@ -27,7 +27,7 @@ class parserinfo(object): def validate(self, year: datetime) -> bool: ... -class parser(object): +class parser: def __init__(self, info: parserinfo=...) -> None: ... def parse( @@ -45,7 +45,7 @@ def parse(timestr: Union[str, bytes, IO[Any]], parserinfo: parserinfo=..., **kwa ... -class _tzparser(object): +class _tzparser: ... diff --git a/third_party/3/dateutil/relativedelta.pyi b/third_party/3/dateutil/relativedelta.pyi index dc7e97bc0..f221a2082 100644 --- a/third_party/3/dateutil/relativedelta.pyi +++ b/third_party/3/dateutil/relativedelta.pyi @@ -4,7 +4,7 @@ from datetime import date, datetime, timedelta __all__ = ... # type: List[str] -class weekday(object): +class weekday: def __init__(self, weekday: int, n: Optional[int]=...) -> None: ... def __call__(self, n: int) -> 'weekday': ... @@ -25,7 +25,7 @@ SA = ... # type: weekday SU = ... # type: weekday -class relativedelta(object): +class relativedelta: def __init__(self, dt1: Optional[date]=..., dt2: Optional[date]=...,