mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
time: Python3.13 updates (#12043)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -29,9 +29,6 @@ posix.unlockpt
|
||||
posix.waitid
|
||||
posix.waitid_result
|
||||
readline.backend
|
||||
time.clock_gettime_ns
|
||||
time.CLOCK_MONOTONIC_RAW_APPROX
|
||||
time.CLOCK_UPTIME_RAW_APPROX
|
||||
webbrowser.MacOSX
|
||||
|
||||
# TODO: fix
|
||||
|
||||
@@ -159,7 +159,6 @@ syslog.LOG_LAUNCHD
|
||||
syslog.LOG_NETINFO
|
||||
syslog.LOG_RAS
|
||||
syslog.LOG_REMOTEAUTH
|
||||
time.clock_gettime_ns
|
||||
|
||||
# Exists on some Linux builds, and is documented,
|
||||
# but is unavailable in Github Actions on Linux with Python 3.12
|
||||
|
||||
@@ -27,6 +27,9 @@ if sys.platform != "win32":
|
||||
|
||||
if sys.platform == "darwin":
|
||||
CLOCK_UPTIME_RAW: int
|
||||
if sys.version_info >= (3, 13):
|
||||
CLOCK_UPTIME_RAW_APPROX: int
|
||||
CLOCK_MONOTONIC_RAW_APPROX: int
|
||||
|
||||
if sys.version_info >= (3, 9) and sys.platform == "linux":
|
||||
CLOCK_TAI: int
|
||||
@@ -94,7 +97,7 @@ if sys.platform != "win32":
|
||||
def clock_settime(clk_id: int, time: float, /) -> None: ... # Unix only
|
||||
|
||||
if sys.platform != "win32":
|
||||
def clock_gettime_ns(clock_id: int, /) -> int: ...
|
||||
def clock_gettime_ns(clk_id: int, /) -> int: ...
|
||||
def clock_settime_ns(clock_id: int, time: int, /) -> int: ...
|
||||
|
||||
if sys.platform == "linux":
|
||||
|
||||
Reference in New Issue
Block a user