Comment Comment by pansa2 > Minimalist dependency injection in PythonWhen an object requires other objects for its work, pass references to those other objects into its __init__ method. That’s it. parent pansa2 4 years ago
When an object requires other objects for its work, pass references to those other objects into its __init__ method. That’s it.