From 2d47b31fe115e8ffef0fc36bf744d06555893151 Mon Sep 17 00:00:00 2001 From: wumajiehechuan-lab Date: Tue, 15 Sep 2026 07:46:46 -0700 Subject: [PATCH] docs: align the render_qr_svg docstring with qrcode being a core dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docstring still said qrcode ships with the partners extra — the fact this PR itself changes. Reword it to match the degradation test's docstring: a trimmed deployment may still lack it, and missing it must degrade, not fail. --- deeptutor/services/partners/weixin_onboarding.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deeptutor/services/partners/weixin_onboarding.py b/deeptutor/services/partners/weixin_onboarding.py index f1d0ef1da..34109ec9a 100644 --- a/deeptutor/services/partners/weixin_onboarding.py +++ b/deeptutor/services/partners/weixin_onboarding.py @@ -100,9 +100,9 @@ def render_qr_svg(payload: str) -> str: SVG rather than PNG so no imaging library is pulled in, and server-side rather than in the browser so the web bundle needs no QR dependency at all. - ``qrcode`` ships with the ``partners`` extra — the same extra this channel - needs — but a deployment missing it should still get a usable page, so the - caller also receives the raw payload to fall back on. + ``qrcode`` is a core dependency, but a trimmed deployment may still lack + it — the page must stay usable, so the caller also receives the raw + payload to fall back on. """ if not payload: return ""