From 6bd68eab5cfe120bf10fa911e77fc7b2fbaa66c8 Mon Sep 17 00:00:00 2001 From: Zephyr Lykos Date: Sat, 4 Oct 2025 14:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20wrong=20return=20type=20on?= =?UTF-8?q?=20scipy.io.wavfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scipy-stubs/io/wavfile.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipy-stubs/io/wavfile.pyi b/scipy-stubs/io/wavfile.pyi index bdd472bb..aedff422 100644 --- a/scipy-stubs/io/wavfile.pyi +++ b/scipy-stubs/io/wavfile.pyi @@ -287,5 +287,5 @@ class WAVE_FORMAT(IntEnum): EXTENSIBLE = 0xFFFE DEVELOPMENT = 0xFFFF -def read(filename: FileLike[bytes], mmap: bool = False) -> onp.Array[_Shape1D | _Shape2D, _ScalarR]: ... +def read(filename: FileLike[bytes], mmap: bool = False) -> tuple[int, onp.Array[_Shape1D | _Shape2D, _ScalarR]]: ... def write(filename: FileLike[bytes], rate: int, data: onp.Array[_Shape1D | _Shape2D, _ScalarW]) -> None: ...