Created
January 7, 2021 10:27
-
-
Save DalyaG/c5ca91eba9b1c54da1c1209286de4b26 to your computer and use it in GitHub Desktop.
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 SomeMidProcessModule: | |
def __init__(self, params: Params): | |
self.params: Params = params # Now, if params is None, we will get an error! | |
def run(self): | |
do_somaething(self.params.some_configurable_value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment