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,11 +1,12 @@
import sys
from typing import List, NamedTuple
class struct_group(NamedTuple):
gr_name: str
gr_passwd: str | None
gr_gid: int
gr_mem: List[str]
def getgrall() -> List[struct_group]: ...
def getgrgid(id: int) -> struct_group: ...
def getgrnam(name: str) -> struct_group: ...
if sys.platform != "win32":
class struct_group(NamedTuple):
gr_name: str
gr_passwd: str | None
gr_gid: int
gr_mem: List[str]
def getgrall() -> List[struct_group]: ...
def getgrgid(id: int) -> struct_group: ...
def getgrnam(name: str) -> struct_group: ...