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

@ -1,3 +1,4 @@
import os
import typing as t
from collections import defaultdict
from functools import update_wrapper
@ -175,7 +176,7 @@ class Blueprint(Scaffold):
self,
name: str,
import_name: str,
static_folder: t.Optional[str] = None,
static_folder: t.Optional[t.Union[str, os.PathLike]] = None,
static_url_path: t.Optional[str] = None,
template_folder: t.Optional[str] = None,
url_prefix: t.Optional[str] = None,