-
-
Notifications
You must be signed in to change notification settings - Fork 339
Inject Configuration copy #585
Unanswered
yaroslavambrozyak
asked this question in
Q&A
-
Hi, in my project I have defined a configuration like this
config = providers.Configuration()
then I inject this configuration into a function
async def my_func(config = Provide[Container.config]): // some logic here
so if I add/modify any config property it will affect it globaly, so can I somehow inject a copy of the config so then I can modify it inside my function and don't affect the actual config?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment