mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
add some Python 2 modules
This commit is contained in:
73
python2/datetime.py
Normal file
73
python2/datetime.py
Normal file
@@ -0,0 +1,73 @@
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more percise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
min = Undefined(object)
|
||||
max = Undefined(object)
|
||||
resolution = Undefined(object)
|
||||
|
||||
class tzinfo(object):
|
||||
def tzname(*args, **kwargs) -> object: pass
|
||||
def utcoffset(*args, **kwargs) -> object: pass
|
||||
def dst(*args, **kwargs) -> object: pass
|
||||
def fromutc(*args, **kwargs) -> object:
|
||||
raise TypeError()
|
||||
raise ValueError()
|
||||
def __reduce__() -> tuple: pass
|
||||
|
||||
class time(object):
|
||||
def isoformat() -> str: pass
|
||||
def strftime(format: Nothing) -> object: pass
|
||||
def __format__(a) -> unicode:
|
||||
raise ValueError()
|
||||
def utcoffset() -> object: pass
|
||||
def tzname() -> object: pass
|
||||
def dst() -> object: pass
|
||||
def replace(*args, **kwargs) -> object: pass
|
||||
def __reduce__() -> tuple: pass
|
||||
|
||||
class timedelta(object):
|
||||
def total_seconds() -> int: pass
|
||||
def __reduce__() -> tuple: pass
|
||||
|
||||
class datetime(object):
|
||||
def now(*args, **kwargs) -> object: pass
|
||||
def utcnow() -> object: pass
|
||||
def fromtimestamp(timestamp: float, *args, **kwargs) -> object: pass
|
||||
def utcfromtimestamp(a: float) -> object: pass
|
||||
def strptime(a: str, b: str) -> object:
|
||||
raise ValueError()
|
||||
def combine(date, time) -> object: pass
|
||||
def date() -> object: pass
|
||||
def time() -> object: pass
|
||||
def timetz() -> object: pass
|
||||
def ctime() -> str: pass
|
||||
def timetuple() -> object: pass
|
||||
def utctimetuple() -> object:
|
||||
raise OverflowError()
|
||||
def isoformat(*args, **kwargs) -> str: pass
|
||||
def utcoffset() -> object: pass
|
||||
def tzname() -> object: pass
|
||||
def dst() -> object: pass
|
||||
def replace(*args, **kwargs) -> object: pass
|
||||
def astimezone(tz) -> object:
|
||||
raise ValueError()
|
||||
def __reduce__() -> tuple: pass
|
||||
|
||||
class date(object):
|
||||
def fromtimestamp(a: float) -> object: pass
|
||||
def fromordinal(a: int) -> object:
|
||||
raise ValueError()
|
||||
def today() -> object: pass
|
||||
def ctime() -> str: pass
|
||||
def strftime(format: Nothing) -> object: pass
|
||||
def __format__(a) -> unicode:
|
||||
raise ValueError()
|
||||
def timetuple() -> object: pass
|
||||
def isocalendar() -> tuple: pass
|
||||
def isoformat() -> str: pass
|
||||
def isoweekday() -> int: pass
|
||||
def toordinal() -> int: pass
|
||||
def weekday() -> int: pass
|
||||
def replace(*args, **kwargs) -> object: pass
|
||||
def __reduce__() -> tuple: pass
|
||||
Reference in New Issue
Block a user