]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Remove type annotation breaking sphinx builds 1419/head
authorAdrian Moennich <adrian@planetcoding.net>
Tue, 11 May 2021 23:04:07 +0000 (01:04 +0200)
committerAdrian Moennich <adrian@planetcoding.net>
Tue, 11 May 2021 23:06:44 +0000 (01:06 +0200)
src/jinja2/environment.py

index d63653fe90ac2aae710333e1646df27002eeac18..833edf7a384d38ffb25f4f77977dde41b3e537e6 100644 (file)
@@ -1178,7 +1178,7 @@ class Template:
         finalize: t.Optional[t.Callable[..., t.Any]] = None,
         autoescape: t.Union[bool, t.Callable[[t.Optional[str]], bool]] = False,
         enable_async: bool = False,
-    ) -> "Template":
+    ) -> t.Any:  # it returns a `Template`, but this breaks the sphinx build...
         env = get_spontaneous_environment(
             cls.environment_class,  # type: ignore
             block_start_string,