mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-26 11:33:58 +03:00
10 lines
205 B
Python
10 lines
205 B
Python
"""Dependency injection example, cars module."""
|
|
|
|
|
|
class Car(object):
|
|
"""Example car."""
|
|
|
|
def __init__(self, engine):
|
|
"""Initializer."""
|
|
self._engine = engine # Engine is injected
|