mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-04 04:13:13 +03:00
10 lines
217 B
Python
10 lines
217 B
Python
from dependency_injector.wiring import inject, Provide
|
|
|
|
from ...container import Container
|
|
from ...service import Service
|
|
|
|
|
|
@inject
|
|
def test_function(service: Service = Provide[Container.service]):
|
|
return service
|