| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from lagom import Container, injectable, bind_to_container |
||
| 2 | |||
| 3 | |||
| 4 | class SomeDep: |
||
| 5 | pass |
||
| 6 | |||
| 7 | |||
| 8 | container = Container() |
||
| 9 | |||
| 10 | |||
| 11 | @bind_to_container(container) |
||
| 12 | def a_bound_function(dep: SomeDep = injectable): |
||
| 13 | return "ok" |
||
| 14 | |||
| 15 | |||
| 16 | @bind_to_container(container) |
||
| 17 | async def an_async_bound_function(dep: SomeDep = injectable): |
||
| 18 | return "ok" |
||
| 19 |