Skip to content

Commit 6bd68ea

Browse files
committed
🐛 Fix wrong return type on scipy.io.wavfile
1 parent 798925f commit 6bd68ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scipy-stubs/io/wavfile.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,5 +287,5 @@ class WAVE_FORMAT(IntEnum):
287287
EXTENSIBLE = 0xFFFE
288288
DEVELOPMENT = 0xFFFF
289289

290-
def read(filename: FileLike[bytes], mmap: bool = False) -> onp.Array[_Shape1D | _Shape2D, _ScalarR]: ...
290+
def read(filename: FileLike[bytes], mmap: bool = False) -> tuple[int, onp.Array[_Shape1D | _Shape2D, _ScalarR]]: ...
291291
def write(filename: FileLike[bytes], rate: int, data: onp.Array[_Shape1D | _Shape2D, _ScalarW]) -> None: ...

0 commit comments

Comments
 (0)