Skip to content

Consider supporting template strings in Template specifications in Python 3.14+ #491

@eb8680

Description

@eb8680

Python 3.14 added t-strings, which allow programmable reuse of f-string literals as templates (including those containing arbitrary expressions, which are not accessible to string.Formatter).

We could allow handlers.llm.template.Template docstrings to be valid instances of string.templatelib.Template in Python >=3.14, though there does not seem to be a backport of string.templatelib to <3.14 because of backwards-incompatible syntax changes.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions