From 746455d1038fd5479f396cbf2d19b48edfeb8290 Mon Sep 17 00:00:00 2001 From: Thomas Rhines Date: Sun, 14 Aug 2022 18:59:19 -0400 Subject: [PATCH] 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. --- src/flask/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/flask/config.py b/src/flask/config.py index 7b6a137a..d4fc310f 100644 --- a/src/flask/config.py +++ b/src/flask/config.py @@ -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