Restore basic wavfile type hints

pull/379/head
nyanpasu64 2021-06-14 18:26:06 -07:00
rodzic c17e5f2b5c
commit 2a9d038ed0
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -15,6 +15,7 @@ import struct
import warnings
from enum import IntEnum
from typing import Tuple
__all__ = [
'WavFileWarning',
@ -538,7 +539,7 @@ def _handle_pad_byte(fid, size):
fid.seek(1, 1)
def read(filename, mmap=False):
def read(filename: str, mmap: bool = False) -> Tuple[int, numpy.ndarray]:
"""
Open a WAV file.