mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
Add missing __match_args__ attributes to several unix-only structseq classes (#7587)
This commit is contained in:
@@ -920,6 +920,8 @@ else:
|
||||
if sys.platform != "darwin":
|
||||
@final
|
||||
class waitid_result(structseq[int], tuple[int, int, int, int, int]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__: Final = ("si_pid", "si_uid", "si_signo", "si_status", "si_code")
|
||||
@property
|
||||
def si_pid(self) -> int: ...
|
||||
@property
|
||||
@@ -977,6 +979,8 @@ else:
|
||||
if sys.platform != "win32":
|
||||
@final
|
||||
class sched_param(structseq[int], tuple[int]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__: Final = ("sched_priority",)
|
||||
def __new__(cls: type[Self], sched_priority: int) -> Self: ...
|
||||
@property
|
||||
def sched_priority(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user