Backport platform specific code to python2 (#6772)

This commit is contained in:
Nikita Sobolev
2022-01-01 15:26:20 +03:00
committed by GitHub
parent 6bdc158e61
commit 6da5eb2d04
12 changed files with 583 additions and 576 deletions

View File

@@ -1,15 +1,16 @@
import sys
from typing import List, NamedTuple
class struct_spwd(NamedTuple):
sp_nam: str
sp_pwd: str
sp_lstchg: int
sp_min: int
sp_max: int
sp_warn: int
sp_inact: int
sp_expire: int
sp_flag: int
def getspall() -> List[struct_spwd]: ...
def getspnam(name: str) -> struct_spwd: ...
if sys.platform != "win32":
class struct_spwd(NamedTuple):
sp_nam: str
sp_pwd: str
sp_lstchg: int
sp_min: int
sp_max: int
sp_warn: int
sp_inact: int
sp_expire: int
sp_flag: int
def getspall() -> List[struct_spwd]: ...
def getspnam(name: str) -> struct_spwd: ...