Skip to content

Instantly share code, notes, and snippets.

@DalyaG
Created January 7, 2021 10:27
Show Gist options
  • Save DalyaG/c5ca91eba9b1c54da1c1209286de4b26 to your computer and use it in GitHub Desktop.
Save DalyaG/c5ca91eba9b1c54da1c1209286de4b26 to your computer and use it in GitHub Desktop.
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