mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-26 11:33:58 +03:00
19 lines
286 B
Python
19 lines
286 B
Python
"""Car & Engine example 1."""
|
|
|
|
|
|
class Engine(object):
|
|
"""Example engine."""
|
|
|
|
|
|
class Car(object):
|
|
"""Example car."""
|
|
|
|
def __init__(self):
|
|
"""Initializer."""
|
|
self.engine = Engine()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
car = Car()
|
|
assert car.engine is not None
|