Fix misrendered docstring

The API reference for `flask.Config.from_mapping` needs a newline to separate
the summary from the return description.  I also wrapped the docstring at 72
characters as suggested in CONTRIBUTING.rst.
This commit is contained in:
Thomas Rhines 2022-08-14 18:59:19 -04:00
parent e0c157f7ee
commit 746455d103

View file

@ -275,8 +275,9 @@ class Config(dict):
def from_mapping(
self, mapping: t.Optional[t.Mapping[str, t.Any]] = None, **kwargs: t.Any
) -> bool:
"""Updates the config like :meth:`update` ignoring items with non-upper
keys.
"""Updates the config like :meth:`update` ignoring items with
non-upper keys.
:return: Always returns ``True``.
.. versionadded:: 0.11