Files
typeshed/stdlib/sndhdr.pyi
Sebastian Rittau f0bf6eebbd AnyStr cleanup (#5487)
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs.
* Add StrOrBytesPath as preferred alias for AnyPath.
* Replace all remaining AnyPath instances with StrOrBytesPath.
* Mark AnyPath as obsolete.

Part of #5470
2021-05-17 20:45:48 +02:00

13 lines
351 B
Python

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