mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -5,38 +5,39 @@ _RatecvState: TypeAlias = tuple[int, tuple[tuple[int, int], ...]]
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
def add(__fragment1: bytes, __fragment2: bytes, __width: int) -> bytes: ...
|
||||
def adpcm2lin(__fragment: bytes, __width: int, __state: _AdpcmState | None) -> tuple[bytes, _AdpcmState]: ...
|
||||
def alaw2lin(__fragment: bytes, __width: int) -> bytes: ...
|
||||
def avg(__fragment: bytes, __width: int) -> int: ...
|
||||
def avgpp(__fragment: bytes, __width: int) -> int: ...
|
||||
def bias(__fragment: bytes, __width: int, __bias: int) -> bytes: ...
|
||||
def byteswap(__fragment: bytes, __width: int) -> bytes: ...
|
||||
def cross(__fragment: bytes, __width: int) -> int: ...
|
||||
def findfactor(__fragment: bytes, __reference: bytes) -> float: ...
|
||||
def findfit(__fragment: bytes, __reference: bytes) -> tuple[int, float]: ...
|
||||
def findmax(__fragment: bytes, __length: int) -> int: ...
|
||||
def getsample(__fragment: bytes, __width: int, __index: int) -> int: ...
|
||||
def lin2adpcm(__fragment: bytes, __width: int, __state: _AdpcmState | None) -> tuple[bytes, _AdpcmState]: ...
|
||||
def lin2alaw(__fragment: bytes, __width: int) -> bytes: ...
|
||||
def lin2lin(__fragment: bytes, __width: int, __newwidth: int) -> bytes: ...
|
||||
def lin2ulaw(__fragment: bytes, __width: int) -> bytes: ...
|
||||
def max(__fragment: bytes, __width: int) -> int: ...
|
||||
def maxpp(__fragment: bytes, __width: int) -> int: ...
|
||||
def minmax(__fragment: bytes, __width: int) -> tuple[int, int]: ...
|
||||
def mul(__fragment: bytes, __width: int, __factor: float) -> bytes: ...
|
||||
def add(fragment1: bytes, fragment2: bytes, width: int, /) -> bytes: ...
|
||||
def adpcm2lin(fragment: bytes, width: int, state: _AdpcmState | None, /) -> tuple[bytes, _AdpcmState]: ...
|
||||
def alaw2lin(fragment: bytes, width: int, /) -> bytes: ...
|
||||
def avg(fragment: bytes, width: int, /) -> int: ...
|
||||
def avgpp(fragment: bytes, width: int, /) -> int: ...
|
||||
def bias(fragment: bytes, width: int, bias: int, /) -> bytes: ...
|
||||
def byteswap(fragment: bytes, width: int, /) -> bytes: ...
|
||||
def cross(fragment: bytes, width: int, /) -> int: ...
|
||||
def findfactor(fragment: bytes, reference: bytes, /) -> float: ...
|
||||
def findfit(fragment: bytes, reference: bytes, /) -> tuple[int, float]: ...
|
||||
def findmax(fragment: bytes, length: int, /) -> int: ...
|
||||
def getsample(fragment: bytes, width: int, index: int, /) -> int: ...
|
||||
def lin2adpcm(fragment: bytes, width: int, state: _AdpcmState | None, /) -> tuple[bytes, _AdpcmState]: ...
|
||||
def lin2alaw(fragment: bytes, width: int, /) -> bytes: ...
|
||||
def lin2lin(fragment: bytes, width: int, newwidth: int, /) -> bytes: ...
|
||||
def lin2ulaw(fragment: bytes, width: int, /) -> bytes: ...
|
||||
def max(fragment: bytes, width: int, /) -> int: ...
|
||||
def maxpp(fragment: bytes, width: int, /) -> int: ...
|
||||
def minmax(fragment: bytes, width: int, /) -> tuple[int, int]: ...
|
||||
def mul(fragment: bytes, width: int, factor: float, /) -> bytes: ...
|
||||
def ratecv(
|
||||
__fragment: bytes,
|
||||
__width: int,
|
||||
__nchannels: int,
|
||||
__inrate: int,
|
||||
__outrate: int,
|
||||
__state: _RatecvState | None,
|
||||
__weightA: int = 1,
|
||||
__weightB: int = 0,
|
||||
fragment: bytes,
|
||||
width: int,
|
||||
nchannels: int,
|
||||
inrate: int,
|
||||
outrate: int,
|
||||
state: _RatecvState | None,
|
||||
weightA: int = 1,
|
||||
weightB: int = 0,
|
||||
/,
|
||||
) -> tuple[bytes, _RatecvState]: ...
|
||||
def reverse(__fragment: bytes, __width: int) -> bytes: ...
|
||||
def rms(__fragment: bytes, __width: int) -> int: ...
|
||||
def tomono(__fragment: bytes, __width: int, __lfactor: float, __rfactor: float) -> bytes: ...
|
||||
def tostereo(__fragment: bytes, __width: int, __lfactor: float, __rfactor: float) -> bytes: ...
|
||||
def ulaw2lin(__fragment: bytes, __width: int) -> bytes: ...
|
||||
def reverse(fragment: bytes, width: int, /) -> bytes: ...
|
||||
def rms(fragment: bytes, width: int, /) -> int: ...
|
||||
def tomono(fragment: bytes, width: int, lfactor: float, rfactor: float, /) -> bytes: ...
|
||||
def tostereo(fragment: bytes, width: int, lfactor: float, rfactor: float, /) -> bytes: ...
|
||||
def ulaw2lin(fragment: bytes, width: int, /) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user