Debian Codegraph @

jedi/third_party/typeshed/stdlib/pwd.pyi

raw symbols SCIP
1 import sys
2 from _typeshed import structseq
3 from typing import Any, Final, final
4
5 if sys.platform != "win32":
6 @final
7 class struct_passwd(structseq[Any], tuple[str, str, int, int, str, str, str]):
8 if sys.version_info >= (3, 10):
9 __match_args__: Final = ("pw_name", "pw_passwd", "pw_uid", "pw_gid", "pw_gecos", "pw_dir", "pw_shell")
10
11 @property
12 def pw_name(self) -> str: ...
13 @property
14 def pw_passwd(self) -> str: ...
15 @property
16 def pw_uid(self) -> int: ...
17 @property
18 def pw_gid(self) -> int: ...
19 @property
20 def pw_gecos(self) -> str: ...
21 @property
22 def pw_dir(self) -> str: ...
23 @property
24 def pw_shell(self) -> str: ...
25
26 def getpwall() -> list[struct_passwd]: ...
27 def getpwuid(uid: int, /) -> struct_passwd: ...
28 def getpwnam(name: str, /) -> struct_passwd: ...