forked from orbit-oss/flask
template_folder type allows pathlib
This commit is contained in:
parent
d9e56c7f4b
commit
09112cfc47
4 changed files with 5 additions and 3 deletions
|
|
@ -3,6 +3,8 @@ Version 2.2.3
|
||||||
|
|
||||||
Unreleased
|
Unreleased
|
||||||
|
|
||||||
|
- Fix the type of ``template_folder`` to accept ``pathlib.Path``. :issue:`4892`
|
||||||
|
|
||||||
|
|
||||||
Version 2.2.2
|
Version 2.2.2
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
|
|
@ -558,7 +558,7 @@ class Flask(Scaffold):
|
||||||
static_host: t.Optional[str] = None,
|
static_host: t.Optional[str] = None,
|
||||||
host_matching: bool = False,
|
host_matching: bool = False,
|
||||||
subdomain_matching: bool = False,
|
subdomain_matching: bool = False,
|
||||||
template_folder: t.Optional[str] = "templates",
|
template_folder: t.Optional[t.Union[str, os.PathLike]] = "templates",
|
||||||
instance_path: t.Optional[str] = None,
|
instance_path: t.Optional[str] = None,
|
||||||
instance_relative_config: bool = False,
|
instance_relative_config: bool = False,
|
||||||
root_path: t.Optional[str] = None,
|
root_path: t.Optional[str] = None,
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@ class Blueprint(Scaffold):
|
||||||
import_name: str,
|
import_name: str,
|
||||||
static_folder: t.Optional[t.Union[str, os.PathLike]] = None,
|
static_folder: t.Optional[t.Union[str, os.PathLike]] = None,
|
||||||
static_url_path: t.Optional[str] = None,
|
static_url_path: t.Optional[str] = None,
|
||||||
template_folder: t.Optional[str] = None,
|
template_folder: t.Optional[t.Union[str, os.PathLike]] = None,
|
||||||
url_prefix: t.Optional[str] = None,
|
url_prefix: t.Optional[str] = None,
|
||||||
subdomain: t.Optional[str] = None,
|
subdomain: t.Optional[str] = None,
|
||||||
url_defaults: t.Optional[dict] = None,
|
url_defaults: t.Optional[dict] = None,
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ class Scaffold:
|
||||||
import_name: str,
|
import_name: str,
|
||||||
static_folder: t.Optional[t.Union[str, os.PathLike]] = None,
|
static_folder: t.Optional[t.Union[str, os.PathLike]] = None,
|
||||||
static_url_path: t.Optional[str] = None,
|
static_url_path: t.Optional[str] = None,
|
||||||
template_folder: t.Optional[str] = None,
|
template_folder: t.Optional[t.Union[str, os.PathLike]] = None,
|
||||||
root_path: t.Optional[str] = None,
|
root_path: t.Optional[str] = None,
|
||||||
):
|
):
|
||||||
#: The name of the package or module that this object belongs
|
#: The name of the package or module that this object belongs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue