mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-27 22:31:12 +08:00
Fix type stubs in type.pyi (#970)
Mypy recognized the type hints as parameter names. This fixes that.
This commit is contained in:
committed by
Guido van Rossum
parent
0cb247e96f
commit
ba82ac08ed
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user