From: Adrian Moennich Date: Tue, 11 May 2021 23:04:07 +0000 (+0200) Subject: Remove type annotation breaking sphinx builds X-Git-Tag: 3.0.1~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a9c8f25bab4920309c4b590b91535ef9f455ebb;p=thirdparty%2Fjinja.git Remove type annotation breaking sphinx builds --- 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,