mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add missing __match_args__ attributes to several unix-only structseq classes (#7587)
This commit is contained in:
@@ -3,7 +3,7 @@ from _typeshed import structseq
|
||||
from enum import IntEnum
|
||||
from types import FrameType
|
||||
from typing import Any, Callable, Iterable, Union
|
||||
from typing_extensions import final
|
||||
from typing_extensions import Final, final
|
||||
|
||||
NSIG: int
|
||||
|
||||
@@ -148,6 +148,8 @@ else:
|
||||
SIGRTMIN: Signals
|
||||
@final
|
||||
class struct_siginfo(structseq[int], tuple[int, int, int, int, int, int, int]):
|
||||
if sys.version_info >= (3, 10):
|
||||
__match_args__: Final = ("si_signo", "si_code", "si_errno", "si_pid", "si_uid", "si_status", "si_band")
|
||||
@property
|
||||
def si_signo(self) -> int: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user