mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-05-22 13:36:15 +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
|