From 0330530de0347d9ea4c587f0b25d800048fb1a41 Mon Sep 17 00:00:00 2001 From: Nsukami _ Date: Fri, 9 Jul 2021 09:54:22 +0000 Subject: [PATCH] Update pwd stub file (#5741) Add the following properties to struct_passwd: * n_fields * n_sequence_fields * n_unnamed_fields Co-authored-by: Akuli --- stdlib/pwd.pyi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stdlib/pwd.pyi b/stdlib/pwd.pyi index 83020c157..3585cc235 100644 --- a/stdlib/pwd.pyi +++ b/stdlib/pwd.pyi @@ -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 @@ -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: ...