mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
spwd is not available on Windows (#6744)
This commit is contained in:
@@ -1,27 +1,28 @@
|
||||
import sys
|
||||
from _typeshed import structseq
|
||||
from typing import Any
|
||||
from typing_extensions import final
|
||||
|
||||
@final
|
||||
class struct_spwd(structseq[Any], tuple[str, str, int, int, int, int, int, int, int]):
|
||||
@property
|
||||
def sp_namp(self) -> str: ...
|
||||
@property
|
||||
def sp_pwdp(self) -> str: ...
|
||||
@property
|
||||
def sp_lstchg(self) -> int: ...
|
||||
@property
|
||||
def sp_min(self) -> int: ...
|
||||
@property
|
||||
def sp_max(self) -> int: ...
|
||||
@property
|
||||
def sp_warn(self) -> int: ...
|
||||
@property
|
||||
def sp_inact(self) -> int: ...
|
||||
@property
|
||||
def sp_expire(self) -> int: ...
|
||||
@property
|
||||
def sp_flag(self) -> int: ...
|
||||
|
||||
def getspall() -> list[struct_spwd]: ...
|
||||
def getspnam(__arg: str) -> struct_spwd: ...
|
||||
if sys.platform != "win32":
|
||||
@final
|
||||
class struct_spwd(structseq[Any], tuple[str, str, int, int, int, int, int, int, int]):
|
||||
@property
|
||||
def sp_namp(self) -> str: ...
|
||||
@property
|
||||
def sp_pwdp(self) -> str: ...
|
||||
@property
|
||||
def sp_lstchg(self) -> int: ...
|
||||
@property
|
||||
def sp_min(self) -> int: ...
|
||||
@property
|
||||
def sp_max(self) -> int: ...
|
||||
@property
|
||||
def sp_warn(self) -> int: ...
|
||||
@property
|
||||
def sp_inact(self) -> int: ...
|
||||
@property
|
||||
def sp_expire(self) -> int: ...
|
||||
@property
|
||||
def sp_flag(self) -> int: ...
|
||||
def getspall() -> list[struct_spwd]: ...
|
||||
def getspnam(__arg: str) -> struct_spwd: ...
|
||||
|
||||
Reference in New Issue
Block a user