Files
typeshed/stdlib/sndhdr.pyi
Sebastian Rittau 841a365284 Remove compatibility aliases (#5464)
* Remove compatibility aliases

Remove a few instances of Text

Use aliases from _typeshed

* Remove unused imports
2021-05-15 20:49:20 +03:00

13 lines
330 B
Python

from _typeshed import AnyPath
from typing import NamedTuple, Optional, Union
class SndHeaders(NamedTuple):
filetype: str
framerate: int
nchannels: int
nframes: int
sampwidth: Union[int, str]
def what(filename: AnyPath) -> Optional[SndHeaders]: ...
def whathdr(filename: AnyPath) -> Optional[SndHeaders]: ...