mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-27 20:13:59 +03:00
a4a84bea54
* Add prototype implementation * Implement wiring by string id * Fix pydocstyle errors * Refactor wiring module * Fix flake8 errors * Update changelog * Fix flake8 errors * Add example and docs
9 lines
174 B
Python
9 lines
174 B
Python
from dependency_injector.wiring import inject, Provide
|
|
|
|
from ...service import Service
|
|
|
|
|
|
@inject
|
|
def test_function(service: Service = Provide['service']):
|
|
return service
|