From 3a9c8f25bab4920309c4b590b91535ef9f455ebb Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Wed, 12 May 2021 01:04:07 +0200 Subject: [PATCH] Remove type annotation breaking sphinx builds --- src/jinja2/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jinja2/environment.py b/src/jinja2/environment.py index d63653fe..833edf7a 100644 --- a/src/jinja2/environment.py +++ b/src/jinja2/environment.py @@ -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, -- 2.47.2