Skip to content

Template

Base classes

Name Children Inherits
str
builtins
str(object\='') -> str

⋔ Inheritance diagram

graph TD
  3912328446["to_prompt.Template"]
  4275460044["builtins.str"]
  2751680898["builtins.object"]
  4275460044 --> 3912328446
  2751680898 --> 4275460044

🛈 DocStrings

Bases: str

Marker class for strings that should be templated.

Source code in src/toprompt/to_prompt.py
class Template(str):  # noqa: SLOT000
    """Marker class for strings that should be templated."""

:fa-brands-github: Show source on GitHub