Skip to content

Instantly share code, notes, and snippets.

@DalyaG
Last active January 7, 2021 10:15
Show Gist options
  • Save DalyaG/72738a81e1eb56445d84eccdaf42ef1f to your computer and use it in GitHub Desktop.
Save DalyaG/72738a81e1eb56445d84eccdaf42ef1f to your computer and use it in GitHub Desktop.
Instantiate your project with an already existing singlton instance of Params
from my_project_params import Params
class MyProject:
def __init__(self, params: Params):
self.params: Params = params
def run(self):
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment