| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | class SomeOtherThingAsAsingleton: |
||
| 2 | def work(self): |
||
| 3 | return 1 |
||
| 4 | |||
| 5 | |||
| 6 | class SomeService: |
||
| 7 | def __init__(self, other: SomeOtherThingAsAsingleton): |
||
| 8 | self.other = other |
||
| 9 | |||
| 10 | def do_it(self): |
||
| 11 | return self.other.work() |
||
| 12 | |||
| 13 | |||
| 14 | class AThingIMightNeed: |
||
| 15 | service: SomeService |
||
| 16 | |||
| 17 | def __init__(self, service: SomeService): |
||
| 18 | self.service = service |
||
| 19 | |||
| 20 | def do_it(self): |
||
| 21 | return self.service.do_it() |
||
| 22 |