refactor: migrate ConfigUpdater class to be called from each module separately, rather than one master instance passed around like a drunk wife. #85
Labels
improvement
Improvements or additions to already-existing code---not part of new features/requests
question
Further information will need to be researched
Description, issue
ConfigUpdater needs to be passed around numerous times to numerous modules & functions, when it could simply be imported then called on an as-needed basis.
Solution
Import what's necessary within each module, then call the needed methods.
Alternatives
Insert the config Updater module within the init.py file so that it can be a global namespace (safe in this case) and easily called from anywhere. --> may be a little excessive depending on how concise the above solution is written.
Additional context
Other alternatives may need to be researched prior to settling on any one idea.
The text was updated successfully, but these errors were encountered: