mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Fix Flask.config annotation (#2787)
This commit is contained in:
committed by
Sebastian Rittau
parent
1442cc02bf
commit
ca62cecd14
4
third_party/2and3/flask/app.pyi
vendored
4
third_party/2and3/flask/app.pyi
vendored
@@ -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 = ...
|
||||
|
||||
4
third_party/2and3/flask/config.pyi
vendored
4
third_party/2and3/flask/config.pyi
vendored
@@ -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 = ...): ...
|
||||
|
||||
Reference in New Issue
Block a user