diff --git a/stdlib/@tests/stubtest_allowlists/win32-py313.txt b/stdlib/@tests/stubtest_allowlists/win32-py313.txt index c2cc8e583..b5cfc6da4 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py313.txt @@ -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...) diff --git a/stdlib/_winapi.pyi b/stdlib/_winapi.pyi index 62ea12404..71a1c9bcc 100644 --- a/stdlib/_winapi.pyi +++ b/stdlib/_winapi.pyi @@ -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 diff --git a/stdlib/subprocess.pyi b/stdlib/subprocess.pyi index 2a5859807..703a50120 100644 --- a/stdlib/subprocess.pyi +++ b/stdlib/subprocess.pyi @@ -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,