mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add missing __match_args__ attributes to several unix-only structseq classes (#7587)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from _typeshed import structseq
|
||||
from typing import overload
|
||||
from typing_extensions import final
|
||||
from typing_extensions import Final, final
|
||||
|
||||
if sys.platform != "win32":
|
||||
RLIMIT_AS: int
|
||||
@@ -29,6 +29,25 @@ if sys.platform != "win32":
|
||||
class struct_rusage(
|
||||
structseq[float], tuple[float, float, int, int, int, int, int, int, int, int, int, int, int, int, int, int]
|
||||
):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__: Final = (
|
||||
"ru_utime",
|
||||
"ru_stime",
|
||||
"ru_maxrss",
|
||||
"ru_ixrss",
|
||||
"ru_idrss",
|
||||
"ru_isrss",
|
||||
"ru_minflt",
|
||||
"ru_majflt",
|
||||
"ru_nswap",
|
||||
"ru_inblock",
|
||||
"ru_oublock",
|
||||
"ru_msgsnd",
|
||||
"ru_msgrcv",
|
||||
"ru_nsignals",
|
||||
"ru_nvcsw",
|
||||
"ru_nivcsw",
|
||||
)
|
||||
@property
|
||||
def ru_utime(self) -> float: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user