mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
* 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
13 lines
351 B
Python
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]: ...
|