mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-24 18:43:58 +03:00
Update wording in changelog and docs
This commit is contained in:
parent
926208c490
commit
ef465a5bcb
|
@ -9,8 +9,8 @@ follows `Semantic versioning`_
|
||||||
|
|
||||||
Development version
|
Development version
|
||||||
-------------------
|
-------------------
|
||||||
- Add argument ``as_`` to the ``config.from_env()`` method for the explicit type conversion
|
- Add argument ``as_`` to the ``config.from_env()`` method for the explicit type casting
|
||||||
after reading an environment variable value, e.g.: ``config.timeout.from_env("TIMEOUT", as_=int)``.
|
of an environment variable value, e.g.: ``config.timeout.from_env("TIMEOUT", as_=int)``.
|
||||||
- Add ``.providers`` attribute to the ``FactoryAggregate`` provider. It is an alias for
|
- Add ``.providers`` attribute to the ``FactoryAggregate`` provider. It is an alias for
|
||||||
``FactoryAggregate.factories`` attribute.
|
``FactoryAggregate.factories`` attribute.
|
||||||
- Add ``.set_providers()`` method to the ``FactoryAggregate`` provider. It is an alias for
|
- Add ``.set_providers()`` method to the ``FactoryAggregate`` provider. It is an alias for
|
||||||
|
|
|
@ -205,7 +205,7 @@ Loading from an environment variable
|
||||||
:lines: 3-
|
:lines: 3-
|
||||||
:emphasize-lines: 18-20
|
:emphasize-lines: 18-20
|
||||||
|
|
||||||
You can use ``as_`` argument to convert the type of an environment variable:
|
You can use ``as_`` argument for the type casting of an environment variable value:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
:emphasize-lines: 2,6,10
|
:emphasize-lines: 2,6,10
|
||||||
|
|
Loading…
Reference in New Issue
Block a user