python-dependency-injector/tests/unit/samples/wiringstringidssamples/package/__init__.py
Roman Mogylatov a4a84bea54
Wiring by string id (#403)
* 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
2021-02-21 10:34:28 -05:00

12 lines
270 B
Python

import sys
if sys.version_info >= (3, 6):
from dependency_injector.wiring import Provide
from ..container import Container
from ..service import Service
def test_package_function(service: Service = Provide[Container.service]):
return service