Introduce static type checking with pyright (#255)

This commit is contained in:
Marcus Valtonen Örnhag
2025-04-05 20:19:05 +02:00
committed by GitHub
parent d7995b8116
commit 0767030997
6 changed files with 45 additions and 26 deletions

View File

@@ -196,6 +196,8 @@ async def player_worker_decode(
layout = "mono"
elif len(frame) == 3:
sample_rate, audio_array, layout = frame
else:
raise ValueError(f"frame must be of length 2 or 3, got: {len(frame)}")
logger.debug(
"received array with shape %s sample rate %s layout %s",