time: Python3.13 updates (#12043)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Amin Alaee
2024-05-27 11:27:23 +02:00
committed by GitHub
parent 6246a38e8e
commit f9536ec21c
3 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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":