Skip to content

Commit 6d60b8f

Browse files
authored
grp is not available on Windows
Refs python#6734
1 parent ff6d084 commit 6d60b8f

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

‎stdlib/grp.pyi‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
import sys
12
from _typeshed import structseq
23
from typing import Any, Optional
34
from typing_extensions import final
45

5-
@final
6-
class struct_group(structseq[Any], tuple[str, Optional[str], int, list[str]]):
7-
@property
8-
def gr_name(self) -> str: ...
9-
@property
10-
def gr_passwd(self) -> str | None: ...
11-
@property
12-
def gr_gid(self) -> int: ...
13-
@property
14-
def gr_mem(self) -> list[str]: ...
15-
16-
def getgrall() -> list[struct_group]: ...
17-
def getgrgid(id: int) -> struct_group: ...
18-
def getgrnam(name: str) -> struct_group: ...
6+
if sys.platform != "win32":
7+
@final
8+
class struct_group(structseq[Any], tuple[str, Optional[str], int, list[str]]):
9+
@property
10+
def gr_name(self) -> str: ...
11+
@property
12+
def gr_passwd(self) -> str | None: ...
13+
@property
14+
def gr_gid(self) -> int: ...
15+
@property
16+
def gr_mem(self) -> list[str]: ...
17+
def getgrall() -> list[struct_group]: ...
18+
def getgrgid(id: int) -> struct_group: ...
19+
def getgrnam(name: str) -> struct_group: ...

0 commit comments

Comments
 (0)