mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-28 12:32:20 +08:00
use '-> Any' instead of '-> object'
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import List, Tuple, Dict, GenericType
|
||||
from typing import Any, List, Tuple, Dict, GenericType
|
||||
|
||||
max = ... # type: object
|
||||
min = ... # type: object
|
||||
@@ -14,53 +14,53 @@ class date(object):
|
||||
raise ValueError()
|
||||
def __reduce__() -> tuple: ...
|
||||
def ctime() -> str: ...
|
||||
def fromordinal(a: int) -> object:
|
||||
def fromordinal(a: int) -> Any:
|
||||
raise ValueError()
|
||||
def fromtimestamp(a: float) -> object: ...
|
||||
def fromtimestamp(a: float) -> Any: ...
|
||||
def isocalendar() -> tuple: ...
|
||||
def isoformat() -> str: ...
|
||||
def isoweekday() -> int: ...
|
||||
def replace(*args, **kwargs) -> object: ...
|
||||
def strftime(format) -> object: ...
|
||||
def timetuple() -> object: ...
|
||||
def today() -> object: ...
|
||||
def replace(*args, **kwargs) -> Any: ...
|
||||
def strftime(format) -> Any: ...
|
||||
def timetuple() -> Any: ...
|
||||
def today() -> Any: ...
|
||||
def toordinal() -> int: ...
|
||||
def weekday() -> int: ...
|
||||
|
||||
class datetime(object):
|
||||
def __reduce__() -> tuple: ...
|
||||
def astimezone(tz) -> object:
|
||||
def astimezone(tz) -> Any:
|
||||
raise ValueError()
|
||||
def combine(date, time) -> object: ...
|
||||
def combine(date, time) -> Any: ...
|
||||
def ctime() -> str: ...
|
||||
def date() -> object: ...
|
||||
def dst() -> object: ...
|
||||
def fromtimestamp(timestamp: float, *args, **kwargs) -> object: ...
|
||||
def date() -> Any: ...
|
||||
def dst() -> Any: ...
|
||||
def fromtimestamp(timestamp: float, *args, **kwargs) -> Any: ...
|
||||
def isoformat(*args, **kwargs) -> str: ...
|
||||
def now(*args, **kwargs) -> object: ...
|
||||
def replace(*args, **kwargs) -> object: ...
|
||||
def strptime(a: str, b: str) -> object:
|
||||
def now(*args, **kwargs) -> Any: ...
|
||||
def replace(*args, **kwargs) -> Any: ...
|
||||
def strptime(a: str, b: str) -> Any:
|
||||
raise ValueError()
|
||||
def time() -> object: ...
|
||||
def timetuple() -> object: ...
|
||||
def timetz() -> object: ...
|
||||
def tzname() -> object: ...
|
||||
def utcfromtimestamp(a: float) -> object: ...
|
||||
def utcnow() -> object: ...
|
||||
def utcoffset() -> object: ...
|
||||
def utctimetuple() -> object:
|
||||
def time() -> Any: ...
|
||||
def timetuple() -> Any: ...
|
||||
def timetz() -> Any: ...
|
||||
def tzname() -> Any: ...
|
||||
def utcfromtimestamp(a: float) -> Any: ...
|
||||
def utcnow() -> Any: ...
|
||||
def utcoffset() -> Any: ...
|
||||
def utctimetuple() -> Any:
|
||||
raise OverflowError()
|
||||
|
||||
class time(object):
|
||||
def __format__(a) -> unicode:
|
||||
raise ValueError()
|
||||
def __reduce__() -> tuple: ...
|
||||
def dst() -> object: ...
|
||||
def dst() -> Any: ...
|
||||
def isoformat() -> str: ...
|
||||
def replace(*args, **kwargs) -> object: ...
|
||||
def strftime(format) -> object: ...
|
||||
def tzname() -> object: ...
|
||||
def utcoffset() -> object: ...
|
||||
def replace(*args, **kwargs) -> Any: ...
|
||||
def strftime(format) -> Any: ...
|
||||
def tzname() -> Any: ...
|
||||
def utcoffset() -> Any: ...
|
||||
|
||||
class timedelta(object):
|
||||
def __reduce__() -> tuple: ...
|
||||
@@ -68,9 +68,9 @@ class timedelta(object):
|
||||
|
||||
class tzinfo(object):
|
||||
def __reduce__() -> tuple: ...
|
||||
def dst(*args, **kwargs) -> object: ...
|
||||
def fromutc(*args, **kwargs) -> object:
|
||||
def dst(*args, **kwargs) -> Any: ...
|
||||
def fromutc(*args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
raise ValueError()
|
||||
def tzname(*args, **kwargs) -> object: ...
|
||||
def utcoffset(*args, **kwargs) -> object: ...
|
||||
def tzname(*args, **kwargs) -> Any: ...
|
||||
def utcoffset(*args, **kwargs) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user