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

22 lines
402 B
Python
Raw Normal View History

2016-10-19 20:20:36 +03:00
"""Dependency injection example, engines module."""
class Engine:
2016-10-19 20:20:36 +03:00
"""Example engine base class.
Engine is a heart of every car. Engine is a very common term and could be
implemented in very different ways.
"""
class GasolineEngine(Engine):
"""Gasoline engine."""
class DieselEngine(Engine):
"""Diesel engine."""
class ElectricEngine(Engine):
"""Electric engine."""