mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-30 05:23:59 +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
|