mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
* run script and do some manual changes (Akuli) * do the whole thing manually (srittau) * merge changes (Akuli) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
15 lines
358 B
Python
15 lines
358 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]
|
|
|
|
_SndHeaders = SndHeaders
|
|
|
|
def what(filename: AnyPath) -> Optional[_SndHeaders]: ...
|
|
def whathdr(filename: AnyPath) -> Optional[_SndHeaders]: ...
|