static_folder can be a pathlib.Path

This commit is contained in:
Yourun-Proger 2021-06-16 22:40:01 +03:00 committed by David Lord
parent 187f6ce409
commit 9a2adfba4d
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 8 additions and 5 deletions

View file

@ -389,7 +389,7 @@ class Flask(Scaffold):
self,
import_name: str,
static_url_path: t.Optional[str] = None,
static_folder: t.Optional[str] = "static",
static_folder: t.Optional[t.Union[str, os.PathLike]] = "static",
static_host: t.Optional[str] = None,
host_matching: bool = False,
subdomain_matching: bool = False,