From 8624f889960f0d73e4af45051b411738666b3e3c Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Thu, 17 Sep 2015 15:12:56 -0700 Subject: [PATCH] add pwd.pyi --- builtins/2.7/pwd.pyi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 builtins/2.7/pwd.pyi diff --git a/builtins/2.7/pwd.pyi b/builtins/2.7/pwd.pyi new file mode 100644 index 000000000..71013c51d --- /dev/null +++ b/builtins/2.7/pwd.pyi @@ -0,0 +1,15 @@ +def getpwall() -> list +def getpwnam(name:str) -> struct_passwd +def getpwuid(uid:int) -> struct_passwd + +class struct_passwd(tuple): ... + n_fields = ... # type: int + n_sequence_fields = ... # type: int + n_unnamed_fields = ... # type: int + pw_dir = ... # type: str + pw_name = ... # type: str + pw_passwd = ... # type: str + pw_shell = ... # type: str + pw_gecos = ... # type: str + pw_gid = ... # type: int + pw_uid = ... # type: int