Skip to content
Myr

fix jinja_loader annotation

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

authored by Cody Scott · committed by David Lord · parent 3207af8 · Browse files · 2 files+4 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

2 files+4 added−1 removed

  • other:+4 added−1 removed

2 files+4 added−1 removed

modified:src/flask/sansio/scaffold.py+2 added-1 removed
7 unmodified lines
8from collections import defaultdict9from functools import update_wrapper1011import click12from jinja2 import BaseLoader13from jinja2 import FileSystemLoader14from werkzeug.exceptions import default_exceptions15from werkzeug.exceptions import HTTPException16from werkzeug.utils import cached_property
255 unmodified lines
272273 self._static_url_path = value274275 @cached_property275 def jinja_loader(self) -> FileSystemLoader | None:276 def jinja_loader(self) -> BaseLoader | None:277 """The Jinja loader for this object's templates. By default this278 is a class :class:`jinja2.loaders.FileSystemLoader` to279 :attr:`template_folder` if it is set.280
525 unmodified lines
modified:CHANGES.rst+2 added
1 unmodified line
2-------------34Unreleased56- Correct type for ``jinja_loader`` property. :issue:`5388`789Version 3.0.110-------------1112Released 2024-01-18
1539 unmodified lines