mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix the typing for clock_settime (#1629)
clock_settime expects a float as parameter, and returns nothing.
This commit is contained in:
@@ -91,4 +91,4 @@ if sys.version_info >= (3, 3):
|
||||
if sys.platform != 'win32':
|
||||
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
|
||||
def clock_settime(clk_id: int, time: float) -> None: ... # Unix only
|
||||
|
||||
Reference in New Issue
Block a user