Skip to content

Commit 3d64286

Browse files

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/winsound.pyi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
from _typeshed import ReadableBuffer
23
from typing import overload
34
from typing_extensions import Literal
45

@@ -21,7 +22,7 @@ if sys.platform == "win32":
2122
def Beep(frequency: int, duration: int) -> None: ...
2223
# Can actually accept anything ORed with 4, and if not it's definitely str, but that's inexpressible
2324
@overload
24-
def PlaySound(sound: bytes | None, flags: Literal[4]) -> None: ...
25+
def PlaySound(sound: ReadableBuffer | None, flags: Literal[4]) -> None: ...
2526
@overload
26-
def PlaySound(sound: str | bytes | None, flags: int) -> None: ...
27+
def PlaySound(sound: str | ReadableBuffer | None, flags: int) -> None: ...
2728
def MessageBeep(type: int = ...) -> None: ...

0 commit comments

Comments
 (0)