File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ optimal as it reduces necessary computation for expensive services and reduces
31
31
32
32
#### Decorator Injection
33
33
34
- With this approach you can automatically inject functions at load time using the ` @wiring.injected ` decorator.
34
+ With this approach you can automatically inject functions at load time using the ` @wiring.inject ` decorator.
35
35
36
36
``` python
37
37
from pif import wiring, providers
@@ -113,7 +113,7 @@ if __name__ == "__main__":
113
113
114
114
OverrideProvider = providers.ExistingSingleton(" overridden_1" )
115
115
116
- with StringProvider.override_existing (OverrideProvider):
116
+ with StringProvider.override (OverrideProvider):
117
117
assert " overridden_1" == my_function()
118
118
119
119
with OverrideProvider.override_existing(" overridden_2" ):
You can’t perform that action at this time.
0 commit comments