mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-30 21:44:03 +03:00
6eff213a68
* Add bootstrap and remove created at from ghnav-flask app * Update readme * Add logo to the docs * Update key features description * Update README * Change headers of API docs * Add alabaster theme config * Update docs index * Add tutorials section * Update what is DI page * Update DI in Python page * Update tutorials index page * Update provider docs * Update container docs * Update examples docs
22 lines
402 B
Python
22 lines
402 B
Python
"""Dependency injection example, engines module."""
|
|
|
|
|
|
class Engine:
|
|
"""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."""
|