-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathspwd.pyi
46 lines (43 loc) · 1.27 KB
/
spwd.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import sys
from _typeshed import structseq
from typing import Any, Final, final
if sys.platform != "win32":
@final
class struct_spwd(structseq[Any], tuple[str, str, int, int, int, int, int, int, int]):
if sys.version_info >= (3, 10):
__match_args__: Final = (
"sp_namp",
"sp_pwdp",
"sp_lstchg",
"sp_min",
"sp_max",
"sp_warn",
"sp_inact",
"sp_expire",
"sp_flag",
)
@property
def sp_namp(self) -> str: ...
@property
def sp_pwdp(self) -> str: ...
@property
def sp_lstchg(self) -> int: ...
@property
def sp_min(self) -> int: ...
@property
def sp_max(self) -> int: ...
@property
def sp_warn(self) -> int: ...
@property
def sp_inact(self) -> int: ...
@property
def sp_expire(self) -> int: ...
@property
def sp_flag(self) -> int: ...
# Deprecated aliases below.
@property
def sp_nam(self) -> str: ...
@property
def sp_pwd(self) -> str: ...
def getspall() -> list[struct_spwd]: ...
def getspnam(arg: str, /) -> struct_spwd: ...