|
| 1 | +import sys |
1 | 2 | from _typeshed import structseq |
2 | 3 | from typing import Any |
3 | 4 | from typing_extensions import final |
4 | 5 |
|
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: ... |
25 | 27 |
|
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