mirror of https://github.com/pallets/flask.git
template_folder type allows pathlib
This commit is contained in:
parent
d9e56c7f4b
commit
09112cfc47
|
@ -3,6 +3,8 @@ Version 2.2.3
|
|||
|
||||
Unreleased
|
||||
|
||||
- Fix the type of ``template_folder`` to accept ``pathlib.Path``. :issue:`4892`
|
||||
|
||||
|
||||
Version 2.2.2
|
||||
-------------
|
||||
|
|
|
@ -558,7 +558,7 @@ class Flask(Scaffold):
|
|||
static_host: t.Optional[str] = None,
|
||||
host_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_relative_config: bool = False,
|
||||
root_path: t.Optional[str] = None,
|
||||
|
|
|
@ -250,7 +250,7 @@ class Blueprint(Scaffold):
|
|||
import_name: str,
|
||||
static_folder: t.Optional[t.Union[str, os.PathLike]] = 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,
|
||||
subdomain: t.Optional[str] = None,
|
||||
url_defaults: t.Optional[dict] = None,
|
||||
|
|
|
@ -93,7 +93,7 @@ class Scaffold:
|
|||
import_name: str,
|
||||
static_folder: t.Optional[t.Union[str, os.PathLike]] = 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,
|
||||
):
|
||||
#: The name of the package or module that this object belongs
|
||||
|
|
Loading…
Reference in New Issue