grp is not available on Windows (#6740)

This commit is contained in:
Alex Waygood
2021-12-29 19:46:49 +00:00
committed by GitHub
parent 2b90495f8b
commit 912f6306b1

View File

@@ -1,18 +1,19 @@
import sys
from _typeshed import structseq
from typing import Any, Optional
from typing_extensions import final
@final
class struct_group(structseq[Any], tuple[str, Optional[str], int, list[str]]):
@property
def gr_name(self) -> str: ...
@property
def gr_passwd(self) -> str | None: ...
@property
def gr_gid(self) -> int: ...
@property
def gr_mem(self) -> list[str]: ...
def getgrall() -> list[struct_group]: ...
def getgrgid(id: int) -> struct_group: ...
def getgrnam(name: str) -> struct_group: ...
if sys.platform != "win32":
@final
class struct_group(structseq[Any], tuple[str, Optional[str], int, list[str]]):
@property
def gr_name(self) -> str: ...
@property
def gr_passwd(self) -> str | None: ...
@property
def gr_gid(self) -> int: ...
@property
def gr_mem(self) -> list[str]: ...
def getgrall() -> list[struct_group]: ...
def getgrgid(id: int) -> struct_group: ...
def getgrnam(name: str) -> struct_group: ...