From ba82ac08ed515c9cbcafe515aa24cec56203b1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Me=C3=9Fmer?= Date: Mon, 6 Mar 2017 16:04:51 +0000 Subject: [PATCH] Fix type stubs in type.pyi (#970) Mypy recognized the type hints as parameter names. This fixes that. --- stdlib/3/time.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/3/time.pyi b/stdlib/3/time.pyi index edcb9d63d..57884b2a9 100644 --- a/stdlib/3/time.pyi +++ b/stdlib/3/time.pyi @@ -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