Skip to content
Myr

Remove type annotation breaking sphinx builds

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Adrian Moennich · committed by Adrian Moennich · parent b5323b2 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/jinja2/environment.py+1 added-1 removed
1176 unmodified lines
1177 undefined: t.Type[Undefined] = Undefined,1178 finalize: t.Optional[t.Callable[..., t.Any]] = None,1179 autoescape: t.Union[bool, t.Callable[[t.Optional[str]], bool]] = False,1180 enable_async: bool = False,1181 ) -> "Template":1181 ) -> t.Any: # it returns a `Template`, but this breaks the sphinx build...1182 env = get_spontaneous_environment(1183 cls.environment_class, # type: ignore1184 block_start_string,1185 block_end_string,
471 unmodified lines