def web_config(self) -> typing.Mapping[str, object]:
"""(:class:`typing.Mapping`) The configuration maping for
web that will go to :attr:`flask.Flask.config <Flask.config>`.
"""
web_config = self.config.get('web', {})
if not isinstance(web_config, collections.abc.Mapping):
web_config = {}
return ImmutableDict((k.upper(), v) for k, v in web_config.items())
评论列表
文章目录