Update Configuration docblocks

This commit is contained in:
Roman Mogilatov 2016-12-02 15:25:10 +02:00
parent 5d37c6a664
commit a868d0bb06
2 changed files with 205 additions and 195 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@ from .utils cimport (
cdef class Configuration(Provider): cdef class Configuration(Provider):
"""Configuration provider. """Configuration provider.
Configudation provider helps with implementing late static binding of Configuration provider helps with implementing late static binding of
configuration options - use first, set last. configuration options - use first, set last.
.. code-block:: python .. code-block:: python
@ -33,7 +33,11 @@ cdef class Configuration(Provider):
""" """
def __init__(self, name): def __init__(self, name):
"""Initializer.""" """Initializer.
:param name: Name of configuration unit.
:type name: str
"""
self.__name = name self.__name = name
self.__value = None self.__value = None
self.__children = dict() self.__children = dict()
@ -82,7 +86,13 @@ cdef class Configuration(Provider):
return self.__name return self.__name
cpdef object update(self, value): cpdef object update(self, value):
"""Set configuration options.""" """Set configuration options.
:param value: Value of configuration option.
:type value: object | dict
:rtype: None
"""
cdef Configuration child_provider cdef Configuration child_provider
cdef object child_value cdef object child_value