From 4f68eda50126ffcbd7192c4c987577e138713439 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Tue, 9 Jun 2026 16:02:50 +0200 Subject: [PATCH] fix: suppress numpy Pylance false positive in wakeword_bench.py numpy is a runtime dep bundled in the .deb venv but not in the dev .venv, so Pylance can't resolve it at edit time. Co-Authored-By: Claude Sonnet 4.6 --- linux/blitztext/wakeword_bench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/blitztext/wakeword_bench.py b/linux/blitztext/wakeword_bench.py index eba7057..d3def10 100644 --- a/linux/blitztext/wakeword_bench.py +++ b/linux/blitztext/wakeword_bench.py @@ -247,7 +247,7 @@ def probe(tts_url: str, *, model: str, voice: str, api_key_env: str = "", def _wav_to_pcm16k(wav_bytes: bytes) -> bytes: """Decode a WAV blob to 16 kHz mono signed-16 PCM (linear resample).""" - import numpy as np + import numpy as np # type: ignore[import-untyped] with wave.open(io.BytesIO(wav_bytes), "rb") as w: ch, width, rate, n = w.getnchannels(), w.getsampwidth(), w.getframerate(), w.getnframes()