Files
typeshed/stdlib/pwd.pyi
Nsukami _ 0330530de0 Update pwd stub file (#5741)
Add the following properties to struct_passwd:
* n_fields
* n_sequence_fields
* n_unnamed_fields

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-07-09 12:54:22 +03:00

19 lines
466 B
Python

from typing import ClassVar, List, Tuple
class struct_passwd(Tuple[str, str, int, int, str, str, str]):
pw_name: str
pw_passwd: str
pw_uid: int
pw_gid: int
pw_gecos: str
pw_dir: str
pw_shell: str
n_fields: ClassVar[int]
n_sequence_fields: ClassVar[int]
n_unnamed_fields: ClassVar[int]
def getpwall() -> List[struct_passwd]: ...
def getpwuid(__uid: int) -> struct_passwd: ...
def getpwnam(__name: str) -> struct_passwd: ...