Migrate Starlette TemplateResponse call sites to the new signature #4

Closed
opened 2026-06-23 23:14:47 +00:00 by rbrooks · 1 comment
Owner

Target release: v1.0.1

Update all TemplateResponse(...) call sites to the current TemplateResponse(request, name, context) signature to clear Starlette templating deprecation warnings.

Why now: this is a prerequisite for adopting the Renovate Starlette 1.x major bump — the old signature is removed in newer Starlette.

Source: SECURITY_AUDIT_REMEDIATION_PLAN.md → "Remaining non-blocking follow-up".

**Target release:** v1.0.1 Update all `TemplateResponse(...)` call sites to the current `TemplateResponse(request, name, context)` signature to clear Starlette templating deprecation warnings. **Why now:** this is a prerequisite for adopting the Renovate **Starlette 1.x** major bump — the old signature is removed in newer Starlette. Source: `SECURITY_AUDIT_REMEDIATION_PLAN.md` → "Remaining non-blocking follow-up".
Author
Owner

Verified on main (8dc5b3f): all 13 TemplateResponse call sites already use the new request-first signature TemplateResponse(request, name, context) — across app/main.py, app/api/auth.py, channels.py, locations.py, location_subs.py, public.py, and spc_impacts.py. A search for the deprecated string-first form TemplateResponse("name", ...) returns no matches.

The migration was already done during earlier work (the note in SECURITY_AUDIT_REMEDIATION_PLAN.md predated it). No code change required, so there is nothing blocking the Renovate Starlette 1.x major bump on this front.

Closing as already complete.

Verified on `main` (`8dc5b3f`): all 13 `TemplateResponse` call sites already use the new request-first signature `TemplateResponse(request, name, context)` — across `app/main.py`, `app/api/auth.py`, `channels.py`, `locations.py`, `location_subs.py`, `public.py`, and `spc_impacts.py`. A search for the deprecated string-first form `TemplateResponse("name", ...)` returns no matches. The migration was already done during earlier work (the note in `SECURITY_AUDIT_REMEDIATION_PLAN.md` predated it). No code change required, so there is nothing blocking the Renovate Starlette 1.x major bump on this front. Closing as already complete.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rbrooks/WeatherBot#4
No description provided.