Skip to content

Commit 0330530

Browse files
LeMeteoreAkuli
andauthored
Update pwd stub file (#5741)
Add the following properties to struct_passwd: * n_fields * n_sequence_fields * n_unnamed_fields Co-authored-by: Akuli <[email protected]>
1 parent c4a60ce commit 0330530

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

stdlib/pwd.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Tuple
1+
from typing import ClassVar, List, Tuple
22

33
class struct_passwd(Tuple[str, str, int, int, str, str, str]):
44
pw_name: str
@@ -9,6 +9,10 @@ class struct_passwd(Tuple[str, str, int, int, str, str, str]):
99
pw_dir: str
1010
pw_shell: str
1111

12+
n_fields: ClassVar[int]
13+
n_sequence_fields: ClassVar[int]
14+
n_unnamed_fields: ClassVar[int]
15+
1216
def getpwall() -> List[struct_passwd]: ...
1317
def getpwuid(__uid: int) -> struct_passwd: ...
1418
def getpwnam(__name: str) -> struct_passwd: ...

0 commit comments

Comments
 (0)