mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 19:54:30 +03:00
af7364e062
* Add wiring module * Fix code style * Fix package test * Add version fix * Try spike for 3.6 * Try another fix with metaclass * Downsample required version to 3.6 * Introduce concept with annotations * Fix bugs * Add debug message * Add extra tests * Add extra debugging * Update config resolving * Remove 3.6 generic meta fix * Fix Flake8 * Add spike for 3.6 * Add Python 3.6 spike * Add unwire functionality * Add support of corouting functions
9 lines
201 B
Python
9 lines
201 B
Python
from dependency_injector.wiring import Provide
|
|
|
|
from ...container import Container
|
|
from ...service import Service
|
|
|
|
|
|
def test_function(service: Service = Provide[Container.service]):
|
|
return service
|