mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Update stub for spwd
- Use `NamedTuple`
- Fix stub for Python 3
- Some attributes are changed from Python 2
- `sp_nam` -> `sp_namp`
- `sp_pwd` -> `sp_pwdp`
15 lines
658 B
Python
15 lines
658 B
Python
from typing import List, NamedTuple
|
|
|
|
struct_spwd = NamedTuple("struct_spwd", [("sp_namp", str),
|
|
("sp_pwdp", str),
|
|
("sp_lstchg", int),
|
|
("sp_min", int),
|
|
("sp_max", int),
|
|
("sp_warn", int),
|
|
("sp_inact", int),
|
|
("sp_expire", int),
|
|
("sp_flag", int)])
|
|
|
|
def getspall() -> List[struct_spwd]: ...
|
|
def getspnam(name: str) -> struct_spwd: ...
|