Add missing struct_spwd fields (#12158)

This commit is contained in:
Sebastian Rittau
2024-06-18 15:59:43 +02:00
committed by GitHub
parent c303b3221e
commit fdce887b94
6 changed files with 5 additions and 20 deletions

View File

@@ -1,6 +1,2 @@
# Exists at runtime, but missing from stubs
spwd.struct_spwd.sp_nam
spwd.struct_spwd.sp_pwd
# doesn't exist on linux
msilib(.[a-z]+)?

View File

@@ -1,6 +1,2 @@
# Exists at runtime, but missing from stubs
spwd.struct_spwd.sp_nam
spwd.struct_spwd.sp_pwd
# doesn't exist on linux
msilib(.[a-z]+)?

View File

@@ -1,6 +1,2 @@
# Exists at runtime, but missing from stubs
spwd.struct_spwd.sp_nam
spwd.struct_spwd.sp_pwd
# doesn't exist on linux
msilib(.[a-z]+)?

View File

@@ -2,9 +2,5 @@
# while being inspected by stubtest. Fixed in Python 3.10.
select.epoll.register
# Exists at runtime, but missing from stubs
spwd.struct_spwd.sp_nam
spwd.struct_spwd.sp_pwd
# doesn't exist on linux
msilib(.[a-z]+)?

View File

@@ -2,9 +2,5 @@
# while being inspected by stubtest. Fixed in Python 3.10.
select.epoll.register
# Exists at runtime, but missing from stubs
spwd.struct_spwd.sp_nam
spwd.struct_spwd.sp_pwd
# doesn't exist on linux
msilib(.[a-z]+)?

View File

@@ -36,6 +36,11 @@ if sys.platform != "win32":
def sp_expire(self) -> int: ...
@property
def sp_flag(self) -> int: ...
# Deprecated aliases below.
@property
def sp_nam(self) -> str: ...
@property
def sp_pwd(self) -> str: ...
def getspall() -> list[struct_spwd]: ...
def getspnam(arg: str, /) -> struct_spwd: ...