Skip to content

Commit 64ca731

Browse files
srittauJelleZijlstra
authored andcommitted
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 ..."
1 parent 4b6b484 commit 64ca731

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/2and3/jinja2/environment.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class Environment:
7979

8080
class Template:
8181
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 = ...): ...
82+
environment: Environment = ...
8283
@classmethod
8384
def from_code(cls, environment, code, globals, uptodate: Optional[Any] = ...): ...
8485
@classmethod

0 commit comments

Comments
 (0)