mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-24 10:34:01 +03:00
11 lines
331 B
Python
11 lines
331 B
Python
"""Dependency injection example, Cars & Engines."""
|
|
|
|
import example.cars
|
|
import example.engines
|
|
|
|
|
|
if __name__ == '__main__':
|
|
gasoline_car = example.cars.Car(example.engines.GasolineEngine())
|
|
diesel_car = example.cars.Car(example.engines.DieselEngine())
|
|
electric_car = example.cars.Car(example.engines.ElectricEngine())
|