mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-23 10:03:56 +03:00
22 lines
408 B
Python
22 lines
408 B
Python
|
"""Dependency injection example, engines module."""
|
||
|
|
||
|
|
||
|
class Engine(object):
|
||
|
"""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 ElectroEngine(Engine):
|
||
|
"""Electro engine."""
|