diff --git a/nbs/99_templates.ipynb b/nbs/99_templates.ipynb index 52701c1..9706a39 100644 --- a/nbs/99_templates.ipynb +++ b/nbs/99_templates.ipynb @@ -167,7 +167,7 @@ "source": [ "# | exporti\n", "class TemplateRenderer:\n", - " def render(self, template: str | None = None, **kwargs: Any) -> str:\n", + " def render(self, template: Optional[str] = None, **kwargs: Any) -> str:\n", " if template is None:\n", " raise RuntimeError(\"Missing template\")\n", " return render_to_remove(template, **kwargs)" diff --git a/sal/templates.py b/sal/templates.py index eb78f47..bea2839 100644 --- a/sal/templates.py +++ b/sal/templates.py @@ -43,7 +43,7 @@ def render_to_remove( # %% ../nbs/99_templates.ipynb 11 class TemplateRenderer: - def render(self, template: str | None = None, **kwargs: Any) -> str: + def render(self, template: Optional[str] = None, **kwargs: Any) -> str: if template is None: raise RuntimeError("Missing template") return render_to_remove(template, **kwargs)