mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Move resource.struct_rusage import (#11343)
This commit is contained in:
@@ -47,9 +47,6 @@ 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
|
||||
|
||||
@@ -978,6 +975,8 @@ else:
|
||||
|
||||
def waitid(__idtype: int, __ident: int, __options: int) -> waitid_result | None: ...
|
||||
|
||||
from resource import struct_rusage
|
||||
|
||||
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: ...
|
||||
|
||||
Reference in New Issue
Block a user