Add os.setns for Linux on Python 3.12+ (#10789)

This commit is contained in:
Amin Alaee
2023-09-28 13:53:25 +02:00
committed by GitHub
parent c6161f7108
commit ac4f4a4c94
3 changed files with 2 additions and 1 deletions

View File

@@ -1101,3 +1101,4 @@ if sys.version_info >= (3, 12) and sys.platform == "linux":
CLONE_THREAD: int
CLONE_VM: int
def unshare(flags: int) -> None: ...
def setns(fd: FileDescriptorLike, nstype: int = 0) -> None: ...