Skip to content

Commit be5f271

Browse files
hawkinspThe dialog Authors
authored andcommitted
Automated Code Change
PiperOrigin-RevId: 970473925
1 parent 287a813 commit be5f271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎dialog/_src/audio_helper.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def decode(self, data: gemini_example_pb2.Audio) -> bytes:
273273

274274
with io.BytesIO() as f:
275275
with wave.open(f, 'wb') as wav_file:
276-
wav_file.setnchannels(array.shape[1] if array.ndim > 1 else 1)
276+
wav_file.setnchannels(array.shape[1] if array.ndim > 1 else 1) # pyrefly: ignore[bad-index]
277277
wav_file.setsampwidth(array.dtype.itemsize)
278278
wav_file.setframerate(data.sample_rate)
279279
wav_file.writeframes(array.tobytes())

0 commit comments

Comments
 (0)