Last active
January 7, 2021 10:15
-
-
Save DalyaG/72738a81e1eb56445d84eccdaf42ef1f to your computer and use it in GitHub Desktop.
Instantiate your project with an already existing singlton instance of Params
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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