mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
25 lines
661 B
Python
25 lines
661 B
Python
from _typeshed import structseq
|
|
from typing import Any, Tuple
|
|
from typing_extensions import final
|
|
|
|
@final
|
|
class struct_passwd(structseq[Any], Tuple[str, str, int, int, str, str, str]):
|
|
@property
|
|
def pw_name(self) -> str: ...
|
|
@property
|
|
def pw_passwd(self) -> str: ...
|
|
@property
|
|
def pw_uid(self) -> int: ...
|
|
@property
|
|
def pw_gid(self) -> int: ...
|
|
@property
|
|
def pw_gecos(self) -> str: ...
|
|
@property
|
|
def pw_dir(self) -> str: ...
|
|
@property
|
|
def pw_shell(self) -> str: ...
|
|
|
|
def getpwall() -> list[struct_passwd]: ...
|
|
def getpwuid(__uid: int) -> struct_passwd: ...
|
|
def getpwnam(__name: str) -> struct_passwd: ...
|