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:
parent
e0c157f7ee
commit
746455d103
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue