stdlib: Add os.get_handle_inheritable & setter

This commit is contained in:
Martin Fischer
2022-02-28 06:53:26 +01:00
committed by Jelle Zijlstra
parent aa383624cf
commit 182ddd9daf
2 changed files with 4 additions and 2 deletions

View File

@@ -662,6 +662,10 @@ def get_terminal_size(fd: int = ...) -> terminal_size: ...
def get_inheritable(__fd: int) -> bool: ...
def set_inheritable(__fd: int, __inheritable: bool) -> None: ...
if sys.platform == "win32":
def get_handle_inheritable(__handle: int) -> bool: ...
def set_handle_inheritable(__handle: int, __inheritable: bool) -> None: ...
if sys.platform != "win32":
# Unix only
def tcgetpgrp(__fd: int) -> int: ...