#36712: Deferred type annotations on template tags lead to TypeError with Python
3.14
-------------------------------------+-------------------------------------
Reporter: Patrick Rauscher | Owner: Jacob
| Walls
Type: Bug | Status: closed
Component: Template system | Version: 5.2
Severity: Release blocker | Resolution: fixed
Keywords: typing, inspect, | Triage Stage: Ready for
deferred annotations | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):
In [changeset:"ec7327453d266d31a00060aeb5b9f19e5adfb0a4" ec732745]:
{{{#!CommitTicketReference repository=""
revision="ec7327453d266d31a00060aeb5b9f19e5adfb0a4"
[6.0.x] Fixed #36712 -- Evaluated type annotations lazily in template tag
registration.
Ideally, this will be reverted when an upstream solution is available for
https://github.com/python/cpython/issues/141560.
Thanks Patrick Rauscher for the report and Augusto Pontes for the
first iteration and test.
Backport of 34186e731ca20a2344b1f88fd543a854d6b13a00 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36712#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019adcc0aa9f-da675549-686d-400b-b900-c4c586e27128-000000%40eu-central-1.amazonses.com.