Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 263018 | pFad | http://github.com/ets-labs/python-dependency-injector/discussions/775
BBFetched URL: http://github.com/ets-labs/python-dependency-injector/discussions/775
Alternative Proxies:
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder if it is possible to read a generic dictionary from a config file (i.e. yaml), and then add new items to the existing dictionary.
For example, I have the following yaml file:
In the container:
This work, creating an object with the conf dictionary defined in the yaml file.
However, I want to add other items to the conf dictionary not defined in the file.
I only manage to do in this way:
Is there a better way of doing it?
Beta Was this translation helpful? Give feedback.
All reactions