mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 17:40:18 +08:00
docs: align the render_qr_svg docstring with qrcode being a core dependency
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.
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user