mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 03:36:41 +03:00
Update Configuration docblocks
This commit is contained in:
parent
5d37c6a664
commit
a868d0bb06
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user