mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
14 lines
615 B
Python
14 lines
615 B
Python
from typing import List, NamedTuple
|
|
|
|
struct_passwd = NamedTuple("struct_passwd", [("pw_name", str),
|
|
("pw_passwd", str),
|
|
("pw_uid", int),
|
|
("pw_gid", int),
|
|
("pw_gecos", str),
|
|
("pw_dir", str),
|
|
("pw_shell", str)])
|
|
|
|
def getpwall() -> List[struct_passwd]: ...
|
|
def getpwuid(uid: int) -> struct_passwd: ...
|
|
def getpwnam(name: str) -> struct_passwd: ...
|