| 1 | import sys |
| 2 | from _typeshed import structseq |
| 3 | from typing import Any, Final, final |
| 4 | |
| 5 | if sys.platform != "win32": |
| 6 | @final |
| 7 | class struct_group(structseq[Any], tuple[str, str | None, int, list[str]]): |
| 8 | if sys.version_info >= (3, 10): |
| 9 | __match_args__: Final = ("gr_name", "gr_passwd", "gr_gid", "gr_mem") |
| 10 | |
| 11 | @property |
| 12 | def gr_name(self) -> str: ... |
| 13 | @property |
| 14 | def gr_passwd(self) -> str | None: ... |
| 15 | @property |
| 16 | def gr_gid(self) -> int: ... |
| 17 | @property |
| 18 | def gr_mem(self) -> list[str]: ... |
| 19 | |
| 20 | def getgrall() -> list[struct_group]: ... |
| 21 | def getgrgid(id: int) -> struct_group: ... |
| 22 | def getgrnam(name: str) -> struct_group: ... |