mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 11:51:39 +03:00
Add minor improvement to wiring doc
This commit is contained in:
parent
4c039d012e
commit
65c883ad57
|
@ -44,6 +44,7 @@ There are two types of markers:
|
||||||
|
|
||||||
|
|
||||||
def foo(bar_provider: Callable[..., Bar] = Provider[Container.bar]):
|
def foo(bar_provider: Callable[..., Bar] = Provider[Container.bar]):
|
||||||
|
bar = bar_provider()
|
||||||
...
|
...
|
||||||
|
|
||||||
You can use configuration, provided instance and sub-container providers as you normally do.
|
You can use configuration, provided instance and sub-container providers as you normally do.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user