Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Flask static_folder cannot be None" #2858

Merged
merged 2 commits into from Mar 12, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Flask.static_folder is Optional

  • Loading branch information...
randomstuff committed Mar 11, 2019
commit 72de644f20498bac5e791f66c675908f7977eb7c
@@ -43,7 +43,7 @@ class Flask(_PackageBoundObject):
template_folder: str = ...
root_path: Any = ...
static_url_path: Any = ...
static_folder: str = ...
static_folder: Optional[str] = ...
instance_path: Any = ...
config: Config = ...
view_functions: Any = ...
@@ -63,7 +63,7 @@ class Flask(_PackageBoundObject):
url_map: Any = ...
subdomain_matching: Any = ...
cli: Any = ...
def __init__(self, import_name: str, static_url_path: Optional[str] = ..., static_folder: str = ..., static_host: Optional[str] = ..., host_matching: bool = ..., subdomain_matching: bool = ..., template_folder: str = ..., instance_path: Optional[str] = ..., instance_relative_config: bool = ..., root_path: Optional[str] = ...) -> None: ...
def __init__(self, import_name: str, static_url_path: Optional[str] = ..., static_folder: Optional[str] = ..., static_host: Optional[str] = ..., host_matching: bool = ..., subdomain_matching: bool = ..., template_folder: str = ..., instance_path: Optional[str] = ..., instance_relative_config: bool = ..., root_path: Optional[str] = ...) -> None: ...
@property
def name(self) -> str: ...
@property
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.