mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add Python 3 modules, and more Python 2 modules.
Also, sort names alphabetically and add module docstrings.
This commit is contained in:
48
python3/time.py
Normal file
48
python3/time.py
Normal file
@@ -0,0 +1,48 @@
|
||||
"""Stub file for the 'time' module."""
|
||||
# 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.
|
||||
|
||||
def asctime(*args, **kwargs) -> unicode: pass
|
||||
|
||||
def clock() -> float: pass
|
||||
|
||||
def clock_getres(a: int) -> float:
|
||||
raise IOError()
|
||||
|
||||
def clock_gettime(a: int) -> float:
|
||||
raise IOError()
|
||||
|
||||
def clock_settime(a: int, b) -> NoneType:
|
||||
raise IOError()
|
||||
|
||||
def ctime(*args, **kwargs) -> unicode: pass
|
||||
|
||||
def get_clock_info(a: str) -> object:
|
||||
raise ValueError()
|
||||
|
||||
def gmtime(*args, **kwargs) -> tuple:
|
||||
raise OSError()
|
||||
|
||||
def localtime(*args, **kwargs) -> tuple: pass
|
||||
|
||||
def mktime(*args, **kwargs) -> float:
|
||||
raise OverflowError()
|
||||
|
||||
def monotonic() -> float: pass
|
||||
|
||||
def perf_counter() -> float: pass
|
||||
|
||||
def process_time() -> float: pass
|
||||
|
||||
def sleep(a: float) -> NoneType:
|
||||
raise ValueError()
|
||||
|
||||
def strftime(a: str, *args, **kwargs) -> unicode:
|
||||
raise MemoryError()
|
||||
|
||||
def strptime(*args, **kwargs) -> object: pass
|
||||
|
||||
def time() -> float: pass
|
||||
|
||||
def tzset() -> NoneType: pass
|
||||
Reference in New Issue
Block a user