Fix type stubs in type.pyi (#970)

Mypy recognized the type hints as parameter names. This fixes that.
This commit is contained in:
Sebastian Meßmer
2017-03-06 16:04:51 +00:00
committed by Guido van Rossum
parent 0cb247e96f
commit ba82ac08ed

View File

@@ -74,11 +74,11 @@ if sys.platform != 'win32':
def tzset() -> None: ... # Unix only
if sys.version_info >= (3, 3):
def get_clock_info(str) -> SimpleNamespace: ...
def get_clock_info(name: str) -> SimpleNamespace: ...
def monotonic() -> float: ...
def perf_counter() -> float: ...
def process_time() -> float: ...
if sys.platform != 'win32':
def clock_getres(int) -> float: ... # Unix only
def clock_gettime(int) -> float: ... # Unix only
def clock_settime(int, struct_time) -> float: ... # Unix only
def clock_getres(clk_id: int) -> float: ... # Unix only
def clock_gettime(clk_id: int) -> float: ... # Unix only
def clock_settime(clk_id: int, time: struct_time) -> float: ... # Unix only