Add a structseq class to _typeshed (#6560)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
Alex WaygoodandAkuli authored and GitHub committed 2021-12-17 13:42:09 -08:00
1 parent 183a43a7e0
commit 0b75d71303
16 files changed
+301 -254

No files matched your search

+4 -2
View File
@@ -1,7 +1,9 @@
import sys
from _typeshed import structseq
from enum import IntEnum
from types import FrameType
from typing import Any, Callable, Iterable, Optional, Tuple, Union
from typing_extensions import final
NSIG: int
@@ -129,8 +131,8 @@ else:
SIGPWR: Signals
SIGRTMAX: Signals
SIGRTMIN: Signals
class struct_siginfo(Tuple[int, int, int, int, int, int, int]):
def __init__(self, sequence: Iterable[int]) -> None: ...
@final
class struct_siginfo(structseq[int], Tuple[int, int, int, int, int, int, int]):
@property
def si_signo(self) -> int: ...
@property