mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-16 23:13:37 +08:00
Update stub for pwd (#1371)
This commit is contained in:
committed by
Jelle Zijlstra
parent
be80c36816
commit
40c6927cf0
13
stdlib/2and3/pwd.pyi
Normal file
13
stdlib/2and3/pwd.pyi
Normal file
@@ -0,0 +1,13 @@
|
||||
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: ...
|
||||
Reference in New Issue
Block a user