Skip to content

Commit

Permalink
Improve return types of os.wait3 and os.wait4 (#11194)
Browse files Browse the repository at this point in the history
  • Loading branch information
likewei92 authored Dec 28, 2023
1 parent 07d1d2a commit 3edfd90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stdlib/os/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ from . import path as _path
if sys.version_info >= (3, 9):
from types import GenericAlias

if sys.platform != "win32":
from resource import struct_rusage

# This unnecessary alias is to work around various errors
path = _path

Expand Down Expand Up @@ -962,8 +965,8 @@ else:

def waitid(__idtype: int, __ident: int, __options: int) -> waitid_result | None: ...

def wait3(options: int) -> tuple[int, int, Any]: ...
def wait4(pid: int, options: int) -> tuple[int, int, Any]: ...
def wait3(options: int) -> tuple[int, int, struct_rusage]: ...
def wait4(pid: int, options: int) -> tuple[int, int, struct_rusage]: ...
def WCOREDUMP(__status: int) -> bool: ...
def WIFCONTINUED(status: int) -> bool: ...
def WIFSTOPPED(status: int) -> bool: ...
Expand Down

0 comments on commit 3edfd90

Please sign in to comment.