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