mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
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
|