Skip to content

Commit 43ea05d

Browse files
authored
Add new constants to winsound (#13695)
1 parent 1c5164f commit 43ea05d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

stdlib/@tests/stubtest_allowlists/win32-py314.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ encodings.win32_code_page_search_function
2222
nt.readinto
2323
pathlib.Path.group
2424
pathlib.Path.owner
25-
winsound.MB_ICONERROR
26-
winsound.MB_ICONINFORMATION
27-
winsound.MB_ICONSTOP
28-
winsound.MB_ICONWARNING
29-
winsound.SND_SENTRY
30-
winsound.SND_SYNC
31-
winsound.SND_SYSTEM
3225
zlib.ZLIBNG_VERSION
3326

3427

stdlib/winsound.pyi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,22 @@ if sys.platform == "win32":
1313
SND_NODEFAULT: Final = 2
1414
SND_NOSTOP: Final = 16
1515
SND_NOWAIT: Final = 8192
16+
if sys.version_info >= (3, 14):
17+
SND_SENTRY: Final = 524288
18+
SND_SYNC: Final = 0
19+
SND_SYSTEM: Final = 2097152
1620

1721
MB_ICONASTERISK: Final = 64
1822
MB_ICONEXCLAMATION: Final = 48
1923
MB_ICONHAND: Final = 16
2024
MB_ICONQUESTION: Final = 32
2125
MB_OK: Final = 0
26+
if sys.version_info >= (3, 14):
27+
MB_ICONERROR: Final = 16
28+
MB_ICONINFORMATION: Final = 64
29+
MB_ICONSTOP: Final = 16
30+
MB_ICONWARNING: Final = 48
31+
2232
def Beep(frequency: int, duration: int) -> None: ...
2333
# Can actually accept anything ORed with 4, and if not it's definitely str, but that's inexpressible
2434
@overload

0 commit comments

Comments
 (0)