Skip to content

Commit

Permalink
Add autowire decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Sep 12, 2023
1 parent 9f34831 commit e87978e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/pages/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ While injecting an interface with multiple implementing dependencies, you need t
which concrete class should be resolved.

```python
def home(
container.autowire
def target(
engine: Annotated[Engine, Wire(qualifier="electric")],
combustion: Annotated[Engine, Wire(qualifier="combustion")],
):
Expand Down
3 changes: 0 additions & 3 deletions test/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,3 @@ def do_thing(self):

def test_get_returns_same_container_proxy(self):
self.assertEqual(self.container.get(RandomService), self.container.get(RandomService))



0 comments on commit e87978e

Please sign in to comment.