From 64ca731d0bb10114d75bd620c0af28c0104de0ec Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sun, 17 Dec 2017 19:04:53 +0100 Subject: [PATCH] jinja2: Add Template.environment (#1789) From the docstring for Template: "Template objects created from the constructor rather than an environment do have an `environment` attribute that points to a temporary environment ..." --- third_party/2and3/jinja2/environment.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/2and3/jinja2/environment.pyi b/third_party/2and3/jinja2/environment.pyi index 909211ca8..44508616a 100644 --- a/third_party/2and3/jinja2/environment.pyi +++ b/third_party/2and3/jinja2/environment.pyi @@ -79,6 +79,7 @@ class Environment: class Template: def __new__(cls, source, block_start_string: Any = ..., block_end_string: Any = ..., variable_start_string: Any = ..., variable_end_string: Any = ..., comment_start_string: Any = ..., comment_end_string: Any = ..., line_statement_prefix: Any = ..., line_comment_prefix: Any = ..., trim_blocks: Any = ..., lstrip_blocks: Any = ..., newline_sequence: Any = ..., keep_trailing_newline: Any = ..., extensions: Any = ..., optimized: bool = ..., undefined: Any = ..., finalize: Optional[Any] = ..., autoescape: bool = ...): ... + environment: Environment = ... @classmethod def from_code(cls, environment, code, globals, uptodate: Optional[Any] = ...): ... @classmethod