mirror of
https://github.com/Steffo99/cfig.git
synced 2024-11-21 15:34:20 +00:00
Be more specific in the return doc for resolve
and resolve_failfast
This commit is contained in:
parent
44f936e507
commit
8a7eadf4ae
2 changed files with 4 additions and 2 deletions
|
@ -39,7 +39,7 @@ class Configuration:
|
|||
Resolve all values of the proxies inside this dictionary.
|
||||
|
||||
:raises .errors.BatchResolutionFailure: If it was not possible to resolve at least one value.
|
||||
:returns: A :class:`dict` containing all the resolved values.
|
||||
:returns: A :class:`dict` containing all the resolved, unproxied, values.
|
||||
"""
|
||||
|
||||
errors_dict = {}
|
||||
|
@ -65,7 +65,7 @@ class Configuration:
|
|||
Resolve all values of the proxies inside this dictionary, failing immediately if an error occurs during a resolution, and raising the error itself.
|
||||
|
||||
:raises Exception: The error occurred during the resolution.
|
||||
:returns: A :class:`dict` containing all the resolved values.
|
||||
:returns: A :class:`dict` containing all the resolved, unproxied, values.
|
||||
"""
|
||||
|
||||
result_dict = {}
|
||||
|
|
|
@ -107,3 +107,5 @@ If the provided sources aren't enough, you may create a custom class inheriting
|
|||
.. hint::
|
||||
|
||||
Since :mod:`cfig.sources` is a namespace package, if you intend to distribute your custom source, you may want to do it by extending the namespace, for an easier developer workflow.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue