python-dependency-injector/examples/miniapps/engines_cars/example/cars.py

10 lines
213 B
Python
Raw Normal View History

2016-10-19 20:20:36 +03:00
"""Dependency injection example, cars module."""
class Car(object):
"""Example car."""
def __init__(self, engine):
"""Initialize instance."""
2016-10-19 20:20:36 +03:00
self._engine = engine # Engine is injected