We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f05d3 commit 3d64286Copy full SHA for 3d64286
stdlib/winsound.pyi
@@ -1,4 +1,5 @@
1
import sys
2
+from _typeshed import ReadableBuffer
3
from typing import overload
4
from typing_extensions import Literal
5
@@ -21,7 +22,7 @@ if sys.platform == "win32":
21
22
def Beep(frequency: int, duration: int) -> None: ...
23
# Can actually accept anything ORed with 4, and if not it's definitely str, but that's inexpressible
24
@overload
- def PlaySound(sound: bytes | None, flags: Literal[4]) -> None: ...
25
+ def PlaySound(sound: ReadableBuffer | None, flags: Literal[4]) -> None: ...
26
- def PlaySound(sound: str | bytes | None, flags: int) -> None: ...
27
+ def PlaySound(sound: str | ReadableBuffer | None, flags: int) -> None: ...
28
def MessageBeep(type: int = ...) -> None: ...
0 commit comments