Files
typeshed/stdlib/2and3/winsound.pyi
Jelle Zijlstra 0142a87da8 adjust isort config (#4290)
Fixes #4288.

- Default imports to THIRD_PARTY, so in effect we merge the FIRST_PARTY and THIRD_PARTY stubs. This means import order is no longer affected by whether typing_extensions is installed locally.
- Treat typing_extensions, _typeshed and some others as standard library modules.

Note that isort master is very different from the latest release; we'll have to do something
different if and when the next isort release comes out.
2020-06-29 00:00:21 -07:00

28 lines
811 B
Python

import sys
from typing import Optional, Union, overload
from typing_extensions import Literal
if sys.platform == "win32":
SND_FILENAME: int
SND_ALIAS: int
SND_LOOP: int
SND_MEMORY: int
SND_PURGE: int
SND_ASYNC: int
SND_NODEFAULT: int
SND_NOSTOP: int
SND_NOWAIT: int
MB_ICONASTERISK: int
MB_ICONEXCLAMATION: int
MB_ICONHAND: int
MB_ICONQUESTION: int
MB_OK: int
def Beep(frequency: int, duration: int) -> None: ...
# Can actually accept anything ORed with 4, and if not it's definitely str, but that's inexpressible
@overload
def PlaySound(sound: Optional[bytes], flags: Literal[4]) -> None: ...
@overload
def PlaySound(sound: Optional[Union[str, bytes]], flags: int) -> None: ...
def MessageBeep(type: int = ...) -> None: ...