mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-23 18:13:56 +03:00
18 lines
288 B
Python
18 lines
288 B
Python
"""Car & Engine example."""
|
|
|
|
|
|
class Engine(object):
|
|
"""Example engine."""
|
|
|
|
|
|
class Car(object):
|
|
"""Example car."""
|
|
|
|
def __init__(self):
|
|
"""Initializer."""
|
|
self.engine = Engine()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
car = Car() # Application creates Car's instance
|