Fix Flask.config annotation (#2787)

This commit is contained in:
Ivan Levkivskyi
2019-02-11 13:19:42 +00:00
committed by Sebastian Rittau
parent 1442cc02bf
commit ca62cecd14
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ class Flask(_PackageBoundObject):
response_class: type = ...
jinja_environment: type = ...
app_ctx_globals_class: type = ...
config_class: type = ...
config_class: Type[Config] = ...
testing: Any = ...
secret_key: Any = ...
session_cookie_name: Any = ...
@@ -45,7 +45,7 @@ class Flask(_PackageBoundObject):
static_url_path: Any = ...
static_folder: str = ...
instance_path: Any = ...
config: Dict[str, Any] = ...
config: Config = ...
view_functions: Any = ...
error_handler_spec: Any = ...
url_build_error_handlers: Any = ...

View File

@@ -2,7 +2,7 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
from typing import Any, Optional, Dict
class ConfigAttribute:
__name__: Any = ...
@@ -11,7 +11,7 @@ class ConfigAttribute:
def __get__(self, obj: Any, type: Optional[Any] = ...): ...
def __set__(self, obj: Any, value: Any) -> None: ...
class Config(dict):
class Config(Dict[str, Any]):
root_path: Any = ...
def __init__(self, root_path: Any, defaults: Optional[Any] = ...) -> None: ...
def from_envvar(self, variable_name: Any, silent: bool = ...): ...