#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
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"34186e731ca20a2344b1f88fd543a854d6b13a00" 34186e73]:
{{{#!CommitTicketReference repository=""
revision="34186e731ca20a2344b1f88fd543a854d6b13a00"
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.
}}}
--
Ticket URL: <
https://code.djangoproject.com/ticket/36712#comment:12>