mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 14:31:59 +08:00
Remove object as the only ancestor for classes in Python 3 stubs.
This commit is contained in:
committed by
Łukasz Langa
parent
efdf2f1b17
commit
4cd137189a
2
third_party/3.6/click/utils.pyi
vendored
2
third_party/3.6/click/utils.pyi
vendored
@@ -57,7 +57,7 @@ class LazyFile:
|
||||
...
|
||||
|
||||
|
||||
class KeepOpenFile(object):
|
||||
class KeepOpenFile:
|
||||
_file: IO
|
||||
|
||||
def __init__(self, file: IO) -> None:
|
||||
|
||||
6
third_party/3/dateutil/parser.pyi
vendored
6
third_party/3/dateutil/parser.pyi
vendored
@@ -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:
|
||||
...
|
||||
|
||||
|
||||
|
||||
4
third_party/3/dateutil/relativedelta.pyi
vendored
4
third_party/3/dateutil/relativedelta.pyi
vendored
@@ -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]=...,
|
||||
|
||||
Reference in New Issue
Block a user