Skip to content

Commit 606e046

Browse files
authored
spwd is not available on Windows
Refs python#6734
1 parent ff6d084 commit 606e046

1 file changed

Lines changed: 24 additions & 22 deletions

File tree

‎stdlib/spwd.pyi‎

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1+
import sys
12
from _typeshed import structseq
23
from typing import Any
34
from typing_extensions import final
45

5-
@final
6-
class struct_spwd(structseq[Any], tuple[str, str, int, int, int, int, int, int, int]):
7-
@property
8-
def sp_namp(self) -> str: ...
9-
@property
10-
def sp_pwdp(self) -> str: ...
11-
@property
12-
def sp_lstchg(self) -> int: ...
13-
@property
14-
def sp_min(self) -> int: ...
15-
@property
16-
def sp_max(self) -> int: ...
17-
@property
18-
def sp_warn(self) -> int: ...
19-
@property
20-
def sp_inact(self) -> int: ...
21-
@property
22-
def sp_expire(self) -> int: ...
23-
@property
24-
def sp_flag(self) -> int: ...
6+
if sys.platform != "win32":
7+
@final
8+
class struct_spwd(structseq[Any], tuple[str, str, int, int, int, int, int, int, int]):
9+
@property
10+
def sp_namp(self) -> str: ...
11+
@property
12+
def sp_pwdp(self) -> str: ...
13+
@property
14+
def sp_lstchg(self) -> int: ...
15+
@property
16+
def sp_min(self) -> int: ...
17+
@property
18+
def sp_max(self) -> int: ...
19+
@property
20+
def sp_warn(self) -> int: ...
21+
@property
22+
def sp_inact(self) -> int: ...
23+
@property
24+
def sp_expire(self) -> int: ...
25+
@property
26+
def sp_flag(self) -> int: ...
2527

26-
def getspall() -> list[struct_spwd]: ...
27-
def getspnam(__arg: str) -> struct_spwd: ...
28+
def getspall() -> list[struct_spwd]: ...
29+
def getspnam(__arg: str) -> struct_spwd: ...

0 commit comments

Comments
 (0)