mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
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>
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user