mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add missing winapi constants for 3.13 (#12657)
This commit is contained in:
@@ -8,18 +8,6 @@ _winapi.OpenEventW
|
||||
_winapi.OpenMutexW
|
||||
_winapi.ReleaseMutex
|
||||
_winapi.ResetEvent
|
||||
_winapi.STARTF_FORCEOFFFEEDBACK
|
||||
_winapi.STARTF_FORCEONFEEDBACK
|
||||
_winapi.STARTF_PREVENTPINNING
|
||||
_winapi.STARTF_RUNFULLSCREEN
|
||||
_winapi.STARTF_TITLEISAPPID
|
||||
_winapi.STARTF_TITLEISLINKNAME
|
||||
_winapi.STARTF_UNTRUSTEDSOURCE
|
||||
_winapi.STARTF_USECOUNTCHARS
|
||||
_winapi.STARTF_USEFILLATTRIBUTE
|
||||
_winapi.STARTF_USEHOTKEY
|
||||
_winapi.STARTF_USEPOSITION
|
||||
_winapi.STARTF_USESIZE
|
||||
_winapi.SetEvent
|
||||
nt.fchmod
|
||||
nt.lchmod
|
||||
@@ -30,9 +18,6 @@ os.fchmod
|
||||
os.lchmod
|
||||
os.path.exists
|
||||
os.path.lexists
|
||||
subprocess.__all__
|
||||
subprocess.STARTF_FORCEOFFFEEDBACK
|
||||
subprocess.STARTF_FORCEONFEEDBACK
|
||||
|
||||
# Undocumented internal method, not really for public consumption.
|
||||
# (Hard to add types for unless we add stubs for the undocumented _overlapped module...)
|
||||
|
||||
@@ -99,6 +99,20 @@ if sys.platform == "win32":
|
||||
SEC_RESERVE: Final = 0x4000000
|
||||
SEC_WRITECOMBINE: Final = 0x40000000
|
||||
|
||||
if sys.version_info >= (3, 13):
|
||||
STARTF_FORCEOFFFEEDBACK: Final = 0x80
|
||||
STARTF_FORCEONFEEDBACK: Final = 0x40
|
||||
STARTF_PREVENTPINNING: Final = 0x2000
|
||||
STARTF_RUNFULLSCREEN: Final = 0x20
|
||||
STARTF_TITLEISAPPID: Final = 0x1000
|
||||
STARTF_TITLEISLINKNAME: Final = 0x800
|
||||
STARTF_UNTRUSTEDSOURCE: Final = 0x8000
|
||||
STARTF_USECOUNTCHARS: Final = 0x8
|
||||
STARTF_USEFILLATTRIBUTE: Final = 0x10
|
||||
STARTF_USEHOTKEY: Final = 0x200
|
||||
STARTF_USEPOSITION: Final = 0x4
|
||||
STARTF_USESIZE: Final = 0x2
|
||||
|
||||
STARTF_USESHOWWINDOW: Final = 0x1
|
||||
STARTF_USESTDHANDLES: Final = 0x100
|
||||
|
||||
|
||||
@@ -2582,6 +2582,11 @@ else:
|
||||
def list2cmdline(seq: Iterable[StrOrBytesPath]) -> str: ... # undocumented
|
||||
|
||||
if sys.platform == "win32":
|
||||
if sys.version_info >= (3, 13):
|
||||
from _winapi import STARTF_FORCEOFFFEEDBACK, STARTF_FORCEONFEEDBACK
|
||||
|
||||
__all__ += ["STARTF_FORCEOFFFEEDBACK", "STARTF_FORCEONFEEDBACK"]
|
||||
|
||||
class STARTUPINFO:
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user