8000 Add several missing stdlib functions by not-my-profile · Pull Request #7397 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Add several missing stdlib functions #7397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 6, 2022
Merged
Prev Previous commit
Next Next commit
stdlib: Add time.pthread_getcpuclockid(thread_id)
  • Loading branch information
not-my-profile committed Mar 2, 2022
commit 7f9579e22921be4c55d306e0070a920ad0813879
3 changes: 3 additions & 0 deletions stdlib/time.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ if sys.version_info >= (3, 7):
def clock_gettime_ns(clock_id: int) -> int: ...
def clock_settime_ns(clock_id: int, time: int) -> int: ...

if sys.platform == "linux":
def pthread_getcpuclockid(thread_id: int) -> int: ...

def monotonic_ns() -> int: ...
def perf_counter_ns() -> int: ...
def process_time_ns() -> int: ...
Expand Down
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/linux-py310.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ posix.eventfd_read
posix.eventfd_write
posix.pidfd_open
posix.splice
time.pthread_getcpuclockid
3 changes: 0 additions & 3 deletions tests/stubtest_allowlists/linux-py37.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
ctypes.wintypes
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
pwd.getpwnam

# Exists at runtime, but missing from stubs
time.pthread_getcpuclockid
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/linux-py38.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ select.epoll.register
# Exists at runtime, but missing from stubs
os.copy_file_range
posix.copy_file_range
time.pthread_getcpuclockid
1 change: 0 additions & 1 deletion tests/stubtest_allowlists/linux-py39.txt
649E
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ os.copy_file_range
os.pidfd_open
posix.copy_file_range
posix.pidfd_open
time.pthread_getcpuclockid
0