mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 02:57:14 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Callable, Mapping, Optional, Sequence, Tuple, Union
|
||||
from typing import Callable, Mapping, Optional, Sequence, Union
|
||||
from typing_extensions import Final
|
||||
|
||||
paFloat32: Final[int] = ...
|
||||
@@ -70,7 +70,7 @@ paMacCoreStreamInfo: PaMacCoreStreamInfo
|
||||
_ChannelMap = Sequence[int]
|
||||
_PaHostApiInfo = Mapping[str, Union[str, int]]
|
||||
_PaDeviceInfo = Mapping[str, Union[str, int, float]]
|
||||
_StreamCallback = Callable[[Optional[bytes], int, Mapping[str, float], int], Tuple[Optional[bytes], int]]
|
||||
_StreamCallback = Callable[[Optional[bytes], int, Mapping[str, float], int], tuple[Optional[bytes], int]]
|
||||
|
||||
def get_format_from_width(width: int, unsigned: bool = ...) -> int: ...
|
||||
def get_portaudio_version() -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user