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,14 +1,15 @@
import sys
from typing import List, Tuple
class struct_passwd(Tuple[str, str, int, int, str, str, str]):
pw_name: str
pw_passwd: str
pw_uid: int
pw_gid: int
pw_gecos: str
pw_dir: str
pw_shell: str
def getpwall() -> List[struct_passwd]: ...
def getpwuid(__uid: int) -> struct_passwd: ...
def getpwnam(__name: str) -> struct_passwd: ...
if sys.platform != "win32":
class struct_passwd(Tuple[str, str, int, int, str, str, str]):
pw_name: str
pw_passwd: str
pw_uid: int
pw_gid: int
pw_gecos: str
pw_dir: str
pw_shell: str
def getpwall() -> List[struct_passwd]: ...
def getpwuid(__uid: int) -> struct_passwd: ...
def getpwnam(__name: str) -> struct_passwd: ...