Skip to content

Update pwd stub file #5741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 9, 2021
Merged
6 changes: 5 additions & 1 deletion stdlib/pwd.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Tuple
from typing import ClassVar, List, Tuple

class struct_passwd(Tuple[str, str, int, int, str, str, str]):
pw_name: str
Expand All @@ -9,6 +9,10 @@ class struct_passwd(Tuple[str, str, int, int, str, str, 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: ...