mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
Add missing struct_spwd fields (#12158)
This commit is contained in:
@@ -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]+)?
|
||||
|
||||
@@ -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]+)?
|
||||
|
||||
@@ -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]+)?
|
||||
|
||||
@@ -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]+)?
|
||||
|
||||
@@ -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]+)?
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user